GithubHelp home page GithubHelp logo

Comments (5)

lobradov avatar lobradov commented on June 1, 2024

I gave it a shot in series of PRs.

esphomelib works fine and my example compiles and works good.

esphomeyaml and esphomedoc are a bit of a different beast - I'm not so good with python and I use docker to "compile" .yamls, so I can't tell if my monkey-around is successful. @OttoWinter , counting on you to double-check the code and see if I missed anything.

Docs are updated to resemble PCF docs, but again, have no clue if I missed anything.

@OttoWinter - would be good to write a short "how to test if esphome{yaml/docs} pass quality criteria"...

from feature-requests.

papperone avatar papperone commented on June 1, 2024

any news on this PR? I would relly love to have MCP23017 (and 23008 as same chip with just 8 GPIO) supported as I will be able to move so many of my project to ESPHome while today I'm stuck with other firmware or even custom written ones... :(

from feature-requests.

OttoWinter avatar OttoWinter commented on June 1, 2024

This has already been implemented here esphome/esphome#466

from feature-requests.

Ausonius avatar Ausonius commented on June 1, 2024

Hi I am trying to control through a wemos d1 esphome mcp23017 trying to enable 8 8-button relays by following the code I can only make 8 buttons work but unfortunately the relays or LEDs do not light up when the code is in place I wanted to know where I am wrong the problem arises on the OUTPUT do not enable LED or relay you can see where it is wrong

esphome:
name: esp_realy_8ch
platform: ESP8266
board: d1_mini

wifi:
ssid: "my SSID"
password: "my password"
manual_ip:
static_ip: my ip
subnet: 255.255.255.0
gateway: my gateway

Enable logging

logger:

Enable Home Assistant API

api:
password: 'my_password'

ota:
password: 'my_password'

i2c:
sda: 4
scl: 5
scan: True

Example configuration entry

mcp23017:

  • id: 'mcp23017_hub'
    address: 0x20

binary_sensor:

  • platform: gpio
    name: "Pulsante 1"
    pin:
    mcp23017: mcp23017_hub
    number: 0
    mode: INPUT_PULLUP
    inverted: True
    on_press:
    • switch.toggle: relay_1

switch:

  • platform: gpio
    name: "Relay 1"
    id: relay_1
    pin:
    mcp23017: mcp23017_hub
    number: 15
    mode: OUTPUT
    inverted: True

from feature-requests.

Ausonius avatar Ausonius commented on June 1, 2024

on the MCP when using the OUTPUT mode it does not work nn there is no output from the voltage pins I suppose there is an error in the code made thousands of tests putting an LED on one of the pins in output but nn does not want to turn on in any way

from feature-requests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.