MQTT Switch input rules not behaving as expected
Posted: 10 Aug 2018, 11:52
Hi Guys,
This is driving me insane !
I have three switch inputs, all pulled high by a 10k resistor.
If taken low they should publish an MQTT message to openhab.
They are all set up the same with a different message.
Only one works ?
The rules are as follows :
On Security#DoorSensor6 do
If [Security#DoorSensor6]=0
Publish Landing/Security/DoorSensor6,CLOSED
Else
Publish Landing/Security/DoorSensor6,OPEN
Endif
Endon
The problem appears to be that the open doesn't get sent, the closed one does.
This only happens on the 2nd and third switch.
I have tried separate rules for all three switches (rules set 1,2,3) and all in one rule to no avail ?
Is this a bug or am i missing something ?
The switch inputs are D1,D2,D3 on a wemos d1 mini
If i view whats happening in MQTT.fx it appears that the 2nd & Third switches send closed when they should send open ?
Any help appreciated
Regards
Neil
This is driving me insane !
I have three switch inputs, all pulled high by a 10k resistor.
If taken low they should publish an MQTT message to openhab.
They are all set up the same with a different message.
Only one works ?
The rules are as follows :
On Security#DoorSensor6 do
If [Security#DoorSensor6]=0
Publish Landing/Security/DoorSensor6,CLOSED
Else
Publish Landing/Security/DoorSensor6,OPEN
Endif
Endon
The problem appears to be that the open doesn't get sent, the closed one does.
This only happens on the 2nd and third switch.
I have tried separate rules for all three switches (rules set 1,2,3) and all in one rule to no avail ?
Is this a bug or am i missing something ?
The switch inputs are D1,D2,D3 on a wemos d1 mini
If i view whats happening in MQTT.fx it appears that the 2nd & Third switches send closed when they should send open ?
Any help appreciated
Regards
Neil