Platform information:
* Hardware: DiskStation 1511+
* OS: 6.2.2
* Java Runtime Environment: Java SE Development Kit 8u212
* openHAB version: 2.4.0
Hi,
First off, I’m rather new to MQTT, I’ve been reading on the subject for a while, I think I get the general concepts but some things are definitely escaping me. I’m trying to setup this switch that I’ve flashed with Tasmota 6.6, I actually got it working. It’s visible in PaperUI, I can click the web UI and toggle its state but I can’t get the opposite to happen. I’d like to have the state in PaperUI reflected when I hit the physical switch. Right now nothing happens, nothing in the logs, I don’t have much to go on. I have several other devices (lights, not shown below) that act the same way. It seems to be one way only at this point.
Here’s my things file:
Bridge mqtt:systemBroker:embedded-mqtt-broker [ host=“192.168.x.x”, secure=false ]
{
Thing topic Test_Switch_Thing “Test Switch Power” {
Channels:
Type switch : Test_Switch_Channel_Power [stateTopic=“stat/DVES_7A8ACB_fb/Power”, commandTopic=“cmnd/DVES_7A8ACB_fb/Power”]
}
}
And my items file:
Switch Test_Switch_Power {channel=“mqtt:topic:embedded-mqtt-broker:Test_Switch_Thing:Test_Switch_Channel_Power”, autoupdate=“true”}
What do I need to do in order for the switch to publish back its state? I’ve tried writing Tasmota rules and various MQTT settings… Obviously my rule isn’t getting triggered either.
rule “Test_Switch_Power Changed”
when
Item Test_Switch_Power changed
then
logInfo(“Test_Switch_Power Changed”, “Changed!”);
end
Any help would be greatly appreciated, thank you!
Nic