Forum Tiny Control Solution
OpenHab LK_V35 MQTT problem - Wersja do druku

+- Forum Tiny Control Solution (https://forum.tinycontrol.pl)
+-- Dział: LanKontroler - sprzęt i wersje wsadów, problemy, zastosowanie (https://forum.tinycontrol.pl/forumdisplay.php?fid=3)
+--- Dział: LanKontroler V3.5 (https://forum.tinycontrol.pl/forumdisplay.php?fid=28)
+--- Wątek: OpenHab LK_V35 MQTT problem (/showthread.php?tid=1006)



OpenHab LK_V35 MQTT problem - MGyalu - 12-29-2019

Hello guys!

There are several V3.5 devices that I would like to use on an intranet. I couldn't find a solution here so I would like to use OpenHab2 MQTT. Reading the data, but unfortunately I can't switch the relay.

Item:

Switch Tiny_S {mqtt=">[mqtt:xxxxx/a3f/out0:command:*:MAP(tiny.map)],<[mqtt:xxxxx/a3f/out0Confusedtate:MAP(tiny.map)]" }

map:

ON=1
OFF=0
1=ON
0=OFF


RE: OpenHab LK_V35 MQTT problem - wilkxt - 12-30-2019

example switch out0 to 1 via mosquitto_pub by mqtt.ats.pl serwer
mosquitto_pub -h mqtt.ats.pl -t xxxxxxxxx/cmd -m "out0 1" -u user -P password

you must use "cmd" on end subscription