Hi,
has anyone here successfully integrated a shellyplus 1 relay into the openhab-environment via mqtt?
I just want to toggle the relay output.
I have managed to toggle it via the mqtt-explorer, but now i struggle with the transformations for the input/output…
Hi,
I’m using the main UI.
The syntax for the second generation of shellys is completely different from the ones from the first generation. You can see it by the plus in the name
HI,
thanks for your help. I can now turn the relay on, but somehow it does not turn off when toggling the item in OH to false.
It seems that the OH doesn’t publish to the topic, when i turn the item for the channel of, as i can’t see any payload in MQTT-Explorer.
I also swapped the transformations for the ON and OFF-Values. In this case, i can turn the relay off but not on…
I also tried to remove the state-topic in the channel-config, but this has no effect at all.
Do you have any idea what i could do?
If i toggle my linked item “Test_Betrieb” via OH to true, i can see in the MQTT-Explorer that the message { "method": "Switch.Set", "params": { "id": 0, "on": true } } is published. If i turn the item off, no message is beeing published.
However, i cant see anything in the logger. (I’ve looked via :9001 , should be correct?)
I don’t know what that means. Isn’t your linked Item a Switch type, with ON/OFF commands and states?
Somethings wrong. If it works for ‘true’, then you should see commands in your events.log. Looking in wrong place, or logging not working (which makes it difficult to fix anything else)
I am prodding at this because the UI switch widget has a limitation, you can click ON for Items that have no OFF state, but clicking OFF doesn’t work unless the Item state is ON.
In other words, your state update settings might not be working.
Hi,
filling in the state topic didn’t change the problem, but i recogniced that the State of the Switch-Item stayed NULL. I’ve also seen in MC that the event.log-file didn’t change since 5th of Nov (almost a week). I restarted my OH and then re-installed the log-viewer via openhabian-config-tool.
After the next reboot it worked fine.