Hi, I’m a NOOB with this and can’t figure out what I’m doing wrong.
OpenHabian2 and MQTT on RPi 3, a Sonoff with ESPeasy.
In items: Switch Sonoff1 {mqtt=">[mymosquitto:/Sonoff_1/gpio/12:command:ON:1],>[mymosquitto:/Sonoff_1/gpio/12:command:OFF:0]"}
will let me turn on and off the Sonoff in OpenHab.
and the item as: Switch Sonoff1 {mqtt=">[mymosquitto:/Sonoff_1/SonoffSwitch/Command:command:ON:1],>[mymosquitto:/Sonoff_1/SonoffSwitch/Command:command:OFF:0]”}
I can’t turn the Sonoff On or Off.
I have the same issue with a NodeMCU (ESPeasy) and a LED, so I must be doing something wrong, but I just don’t see it.
Any help appreciated.
Cheers,
Ron.
You might be right. When I look at MQTT Spy, it shows MQTT receives it. Just looks like ESPeasy doesn’t do anything with it. If anyone with OpenHab has previous experiences with this (other than mrwee ) let me know.
Will post at ESPeasy forum 2morrow. Cheers.
Thanks for the info. Tried the 1.00 and 0.00, but no go.
Will continue to search for a solution. And still need to post on ESPeasy (work got in the way of hobby )
Cheers.
Switch SSR "SSR on nodeMCU (ESP Easy mqtt)" <poweroutlet> { mqtt=">[broker:esp1/gpio/2:command:ON:0], >[broker:esp1/gpio/2:command:OFF:1]" }
On ESP Easy I have Pin mode 2 (D4): Output High because of the type of the SSR I’m using.
You don’t need to configure “Device”.
As I can see you’re controlling output from OH, but on ESP Easy you have an input.
This is what I got to work for a Sonoff basic. There is actually two parts to it. First is sending the command from OpenHAB to the Sonoff. Second half gets the updates of the switches status and updates the switch display in OpenHAB . This way if the Sonoff’s button is pressed to turn on/off the relay, OpenHAB will show the correct state.
I try to build a basic project using espeasy + RPI3 with openhabian 2,1 and mosquito. everything is going fine but relay not working, I can turn on and off relay using espeasy commands using web browser all screens shots are attache can some one tell me where i am wrong.
additionally i want to add timer on this relay with save the relay state during power failure