-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto discover feature with Home Assistant ? #465
Comments
Hi @vincegre The MQTT auto discover feature works for switches and lights. You have to have Home Assistant connected to the same MQTT broker as the ESP and then just enable the Home Assistant option in the General tab of the web UI. If you have not configured otherwise the default prefix "homeassistant" should work. Once you enable it (and click on the "Save" button) it will send an MQTT message to a topic like "homeassistant/switch/ESPURNA_XXXXXX/config" with the required information so HA can configure the switch. Same for lights. Yes, there is a lot of work to be done on the docs, yet... |
Hi @xoseperez Thanks a lot for details and great to know it works in so easy way so going to test it today ;) No support for sensors in automatic too ? For docs I would be happy to help if I can in any way ;) Vincèn |
I'm working on adding auto-discover for sensors too. Any help is very welcome. If you want to contribute to the documentation clone the wiki (see the link below the table of contents), modify it and submit a pull request. |
Cool ;)
Will check how to do that and send you hopefully soon some pull requests for documentation ;) Have made a little explanation here too about how to implement it in the meantime: https://community.home-assistant.io/t/mqtt-discovery-with-espeasy-firmware/39312/9?u=vincen |
@xoseperez Thanks a lot for it and definitively going to report how it's going as soon as it's flashed ;) Do you have a way to generate the binary file to download ? as I gave up long time ago to succeed to compile locally ESP firmwares :( |
That's bad :) I can share a wetransfer with the image. Any specific device? |
I know it's bad and I should take some time to setup a proper environment to be able to build them easily ;) Will use relay, DHT shield, and BMP180 sensors ;) Thanks a lot ! |
Succeeded to compile here with Atom and Platform.io setup in it :) Just completely lost how I can compile with the commit you made for autodiscover for sensors ? :/ |
That's good 😄 You have to checkout the "dev" branch. It will depend (slightly) on the OS you use but to change branch from the terminal you will have to type:
If you are using a git frontend I can't tell you the steps but the idea is the same: to checkout the dev branch. Once you are in the dev branch you build it and flash it just like before. |
It seems my homeassistant button on the general page will not stay enabled after I click save. When I refresh the page or restart the device the button is back at off and HA is not finding anything. I did notice in my mqtt logs that the device is constantly connecting and disconnecting. I may just reflash and try again, unless someone has a suggestion? |
For HA button it's normal behaviour as once automatic discovery has been done it doesn't need it at each restart ! |
@vincegre Do you have BMP180 working? Thanks! |
@jsponz If I remember it was working but I don't use anymore Espurna since ages !! Found an other one lot more flexible, easier to use (not focused on sonoff devices): esphomeyaml 👍 |
Hi
It's listed both in repository and wiki that it supports auto discover MQTT feature of Home Assistant but I couldn't find any explanations anywhere (or was not able to find it) about how to configure that on ESP side ! I have already done config in Home Assistant !
Thanks for help ;)
Vincèn
The text was updated successfully, but these errors were encountered: