platform: mqtt
state_topic: “tele/RF_Bridge/RESULT”
name: “Office”
value_template: “{{value_json.RfReceived.Data}}”
payload_on: “30E00A”
payload_off: “30E00E”
device_class: door
I found that these sensors also receive 30E006 for low battery. Can someone tell me how to integrate that in here? I’m using binary sensor in the automation so not sure how to handle a new code.
platform: state
entity_id: binary_sensor.Office
from: ‘on’
to: ‘off’
The configuration of the contact sensor is likely to cause warning messages (“No matching payload for entity”).
It is subscribed to tele/RF_Bridge/RESULT and will receive all payloads published to this topic. 30E00A -> payload_on 30E00E -> payload_off 30E006 -> no match; warning message
payloads from other sensors -> no match; warning message
Here is one way to configure it so it always reports a valid state regardless of what it receives.