I have been using this switch for a while now. I ave a bunch of then and all the MQTT switched are acting like this. reacting like this. I can see the MQTT topic passing thru. I see the Bridge reacting all the time. Sometimes it is golden and I can open the door, close it, and it is happy happy.
Other times I get the open code in HA, and the door appears to stay open Sometime I see a couple of responsive open and closed codes, then it goes to sleep and sticks in one stte or the other.
Like I said, the sensors (the 2+2 code GS-WDS07 kind) are sending the right codes. The codes are being parsed and it is sending out MQTT messages. The MQTT server is an external Ubuntu 18.04, and monitoring it with an external ‘MQTT Lens’ the codes are being generated. It’s just that HA sometimes get them, sometimes don’t. HA is running on a multiprocessor ~2013 gaming machine, running just HASS.io in Docker on Ubuntu.
Here’s the config, and I have tried tweaking QOS and other settings to affect it in any way, but to no avail.
This is a split out binary sensor yaml file, there are about a dozen of these switches in there.
- platform: mqtt
id: "back_door_open"
name: "Back Door Open"
device_class: opening
state_topic: RF_Bridge/tele/RESULT
value_template: '{{value_json.RfReceived.Data}}'
payload_on: 2F780A
payload_off: 2F780E
retain: false
force_update: false
optimistic: false
qos: 2
availability_topic: RF_Bridge/tele/LWT
payload_available: Online
payload_not_available: Offline