Openhab2 + mqtt: PIR working, switch does not
-
I have just installed openhab2 with mosquitto and the mqtt gateway on my raspi. I made a motion sensor with an arduino nano, which totally works in openhab.The item entry is:
Number PIR "Bewegungsmelder" {mqtt=">[broker:mysensors-out/10/1/1/0/16:state:default]"}Now I wanted to create a switch, which is basically a 433MHz module sending a 24 bit string to control a 433MHz wall plug.
Item entry:
Switch SW2 "Lampe" {mqtt=">[broker:mysensors-in/11/1/1/0/16:command:on:000000000000000000000111],[broker:mysensors-in/11/1/1/0/16:command:off:000000000000000000000110]"}Now when I add the switch to my basic ui and I toggle it, nothing happens. When I send the 24 bit via mqtt.fx to the topic mysensors-in/11/1/1/0/16 it works. But when I toggle the switch in openhab, I don't see an entry in mqtt.fx
What did I do wrong?
-
Omg.. Topic can be closed. After hours and hours of search, try and error, I noticed I called the switch SW2 in the items file and SW1 in the sitemap..
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login