Forum Tiny Control Solution

Pełna wersja: OpenHab LK_V35 MQTT problem
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.

MGyalu

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
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