MQTT, 433MHZ Door/window sensor and Home Assistant, HELP!

Hi There,

I’m hoping someone can have alook at what I’ve done here and tell me whats wrong.

I have a Sonoff RF Bridge running Tasmota, I have a door/windows sensor that provides two codes (off/on)

I can see the Codes perfectly in the Tasmota console

13:06:14 MQT: tele/rfbridge-back/RESULT = {"Time":"2020-01-15T13:06:14","RfReceived":{"Sync":14100,"Low":480,"High":1380,"Data":"93FB0A","RfKey":"None"}}
13:06:19 MQT: tele/rfbridge-back/RESULT = {"Time":"2020-01-15T13:06:19","RfReceived":{"Sync":14000,"Low":480,"High":1380,"Data":"93FB0E","RfKey":"None"}}

I can see the codes in the MQTT “Listen to a topic” in the Developer tools

Message 1 received on tele/rfbridge-back/RESULT at 9:12 PM:
{
    "Time": "2020-01-15T12:12:00",
    "RfReceived": {
        "Sync": 14100,
        "Low": 480,
        "High": 1370,
        "Data": "93FB0E",
        "RfKey": "None"
    }
}
QoS: 0 - Retain: false
Message 0 received on tele/rfbridge-back/RESULT at 9:11 PM:
{
    "Time": "2020-01-15T12:11:54",
    "RfReceived": {
        "Sync": 14010,
        "Low": 490,
        "High": 1370,
        "Data": "93FB0A",
        "RfKey": "None"
    }
}
QoS: 0 - Retain: false

I have my Binary Sensor Configured like this

  - platform: mqtt
    name: "Master Bedroom Sliding Door"
    state_topic: "tele/rfbridge-back/RESULT"
    payload_on: "93FB0E"
    payload_off: "93FB0A"
    qos: 0
    device_class: door
    value_template: ‘{{ value_json.RfReceived.Data }}’

But the damn thing wont change in the UI :frowning:

image

What am I missing?

Thanks in advance

Knotty

Your template has fancy quotes.

    value_template: ‘{{ value_json.RfReceived.Data }}’

Use straight quotes:

    value_template: '{{ value_json.RfReceived.Data }}'
1 Like

That was it, Now works like a Charm!

Thanks

Knotty