I would like to get some expert opinions on my setup.
For the wall push buttons I would like to use the Wemos D1 pro mini (push buttons on the input pins) and they would need to act as the toggle operators.
Then I have the raspberry pi with hass.io installed to receive these MQTT messages from the wemos. The hass.io would then need to run an automation to toggle the M-duino output pins.
Would any of you be able to point me into the right setup and maybe even improve on it?
An example for the mqtt client toggle (wemos button), the broker on hass.io and mqtt client for the switch on M-duino would be great.
I don’t know if you have solved your questions.
Imade some test setups with esp8266 modules (mini d1, wroom and mini d1 pro)
I sugges you to use espeasy on the esp8266 modules: https://www.letscontrolit.com/wiki/index.php/ESPEasy
It is easy to upload, and they have a lot of integrated devices to work with.
For mqtt you can use OpenHAB mqtt settings on the esp side, and mosquitto on the hass side.4
Since I don"t have M-dunio I can’t say anything about the controlls, but if it able to work with mqtt it’s easy.
Here are some lines from my test code:
It’s a relay on a wemos gpio 14, wemos named as esp1 and the device for gpio is named as relay1