HASwitchPlate / openHASP

HomeAutomation Switchplate based on lvgl for ESP32
https://www.openhasp.com
MIT License
726 stars 185 forks source link

mqtt control #716

Closed fifa255 closed 6 months ago

fifa255 commented 6 months ago

Does openhasp support publishing to mqtt topics?

I would like to control some mqtt devices directly from the display rather than having to be dependent on homeassistant. Is this a possibility with openhasp currently?

marsman7 commented 6 months ago

openhasp now already sends mqtt commands when a control is activated.

https://www.openhasp.com/0.7.0/commands/mqtt/

fvanroie commented 6 months ago

openHASP was concieved to be controlled by an Home Automation system. There isn't any intelligence or coding that happens on the device. So, you can add your custom code to the firmware to make it do what you want...

A controller would need to know the topics but also the format of the messages to send and respond too. This is very specific for each device, so you need custom event handlers for that.

Home Automation systems exist to abstract away these specific protocols and formats.