ESPeasy switch not working with OpenHab MQTT
Posted: 02 Mar 2017, 04:40
Hi,
I'm trying to get my Sonoff, flashed with ESPeasy, to turn on and off.
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 OpenHab 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. (using gpio/12)
But if I set up the ESPeasy as follows:
and the item as:
Switch Sonoff1 {mqtt=">[mymosquitto:/Sonoff_1/SonoffSwitch/Command:command:ON:1],>[mymosquitto:/Sonoff_1/SonoffSwitch/Command:command:OFF:0]”}
Then I can't turn the Sonoff On or Off. (using "SonoffSwitch/Command" instead of "gpio/12")
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.
FYI, here the main page setup as info: Cheers,
Ron.
I'm trying to get my Sonoff, flashed with ESPeasy, to turn on and off.
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 OpenHab 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. (using gpio/12)
But if I set up the ESPeasy as follows:
and the item as:
Switch Sonoff1 {mqtt=">[mymosquitto:/Sonoff_1/SonoffSwitch/Command:command:ON:1],>[mymosquitto:/Sonoff_1/SonoffSwitch/Command:command:OFF:0]”}
Then I can't turn the Sonoff On or Off. (using "SonoffSwitch/Command" instead of "gpio/12")
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.
FYI, here the main page setup as info: Cheers,
Ron.