xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
2.98k stars 637 forks source link

MQTT JSON support with Home Assistant #235

Closed xoseperez closed 6 years ago

xoseperez commented 6 years ago

Originally reported by: Tomblarom (Bitbucket: Tomblarom, GitHub: Tomblarom)


I'm using the H801 with ESPurna 1.9.5 and Home Assistant 0.54.0. Normal mqtt platform is working, but I want to use mqtt_json to enable transitions and flashing (See MQTT JSON Light) Can I enable it or is it not implemented?

The other way would be to use MQTT auto-discover feature. But how to do that? I tried to send a discovery message over webinterface, but no "event has been fired" like they say in their docs (See MQTT discovery).

xoseperez commented 6 years ago

Original comment by Vishal Chaudhary (Bitbucket: vishix, GitHub: vishix):


@Xose Pérez Auto Discovery works flawlessly now, will do more testing and update if anything is found. Cheers!!!

xoseperez commented 6 years ago

Removing milestone: 1.9.6 (automated comment)

xoseperez commented 6 years ago

Released. Please note you have to have the "Use CSS style" option to off so ESPurna generates "red,green,blue" style color messages that Home Automation understands.

xoseperez commented 6 years ago

Original comment by Vishal Chaudhary (Bitbucket: vishix, GitHub: vishix):


I will be the first to try and give feedback. Thanks for the amazing work.

xoseperez commented 6 years ago

HA auto-discovery has been fixed and improved in the current dev branch. I'd like to release it tomorrow as 1.9.6.

xoseperez commented 6 years ago

Original comment by Vishal Chaudhary (Bitbucket: vishix, GitHub: vishix):


@xoseperez I also tried to configure the auto-discovery feature, but it does not work right now. I just want to know is it just me or the feature is incomplete? Thanks.