Openhab MQTT not set switch
Posted: 02 Nov 2016, 09:17
Good morning, I would like to say that I must translate with a Translator since my english is not so good. To my problem I use openhab2 on a windows server. Installed is Openhab2, Windows 10, mosquitto-1.4.10. The queries with mqtt for temperature and switch status work. But when I openhab in the swich on on site esp easy does not. And sets the value back to zero. Here a log.
mosquitto log:
openhab log
Openhab Item
If I now with MQTT SPY the value 1 send is not synonymous switched.
http://www.home-h1z1.de/index.php/s/VKZFbchnEUELGp6
mosquitto log:
Code: Select all
1478073340: Received PUBLISH from OPENHAB (d0, q0, r1, m0, '/newdevice/Ledrot/Switch', ... (1 bytes))
1478073340: Sending PUBLISH to ESPClient1 (d0, q0, r0, m0, '/newdevice/Ledrot/Switch', ... (1 bytes))
Code: Select all
2016-11-02 08:58:24.344 [WARN ] [b.core.events.EventPublisherDelegate] - given new state is NULL, couldn't post update for 'Light_WW_Wohnzimmer_rgb'
Code: Select all
Switch Light_WW_Wohnzimmer_rgb "Power" { mqtt="<[mosquitto:/newdevice/Ledrot/Switch:state:MAP(onoff.map)],>[mosquitto:/newdevice/Ledrot/Switch:command:ON:1],>[mosquitto:/newdevice/Ledrot/Switch:command:OFF:0]" }
http://www.home-h1z1.de/index.php/s/VKZFbchnEUELGp6