Sonoff RF Bridge + PIR

So 2 nights ago i flashed tasmota firmware onto my recently acquired Sonof 433mhz RF bridge.

I used the method outlined here HA to RF 433 gateway and how to set up binary_sensors to work with RF payloads to configure my pir sensors.

All worked well i started collecting data from the various sensors around the house (2 door sensors + 2 pir sensors) it worked great for about 20 hrs then nothing no data.

when i view console on my tasmota web interface (and jump up & down in front of the pir sensors) i see:

18:18:35 MQT: tele/sonoff-bridge/RESULT = {“RfReceived”:{“Sync”:10660,“Low”:350,“High”:1010,“Data”:“F6574C”,“RfKey”:“None”}}
18:18:37 MQT: tele/sonoff-bridge/RESULT = {“RfReceived”:{“Sync”:10520,“Low”:330,“High”:1020,“Data”:“97C60C”,“RfKey”:“None”}}

so my bridge is receiving data from my pir

my configiguration.yaml

sensor:

  - platform: mqtt
    state_topic: 'tele/sonoff-bridge/RESULT'
    value_template: '{{value_json.RfReceived.Data}}'
    name: "sonoff bridge 443"
    expire_after: 1

& in my binary sensor confiig

  • platform: template
    sensors:
    kitchen_pir:
    friendly_name: “Kitchen PIR”
    value_template: ‘{{ is_state(“sensor.sonoff_bridge_443”, “97C60C”) }}’
    delay_off: ‘00:00:06’
    device_class: motion

    livingroom_pir:
    friendly_name: “Livingroom PIR”
    value_template: ‘{{ is_state(“sensor.sonoff_bridge_443”, “F6574C”) }}’
    delay_off: ‘00:00:06’
    device_class: motion

i really am at a loss as it was working - my config hasnt changed, IP’s are all static as far as i know nothing has changed.

any help you fine people can offer will be greatly appreciated. :slight_smile:

I am having issues with the same setup , did you resolve this ?
Thanks
joe

I did get it working. I’ll post the relevant parts of my configuration for you later when I’m at my PC

OK, it’s been a while since i set this up but here goes. I’m assuming you already have a working mqqt broker

this is an extract from my configuration.yaml

sensor:
  - platform: mqtt
    state_topic: 'tele/sonoff-bridge/RESULT'
    value_template: '{{value_json.RfReceived.Data}}'
    name: "sonoff bridge 443"
    expire_after: 1

and then this is what i have in my binary_sensor.yaml

  - platform: template
    sensors: 
################################################################################        
################################################################################
      kitchen_pir1:
        friendly_name: "Kitchen PIR1"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "97C60C") }}'
        delay_off: '00:00:06'
        device_class: motion
    
      kitchen_pir2:
        friendly_name: "Kitchen PIR2"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "D0374C") }}'
        delay_off: '00:00:06'
        device_class: motion
        
      kitchen_pir:
        friendly_name: "Kitchen PIR"
        device_class: motion
        value_template: "{{ is_state('binary_sensor.kitchen_pir1', 'on')     or is_state('binary_sensor.kitchen_pir2', 'on') }}"
################################################################################        
################################################################################
      livingroom_pir1:
        friendly_name: "Livingroom PIR1"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "F6574C") }}'
        delay_off: '00:00:06'
        device_class: motion
        
      livingroom_pir2:
        friendly_name: "Livingroom PIR2"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "F5992C") }}'
        delay_off: '00:00:06'
        device_class: motion
        
      livingroom_pir:
        friendly_name: "Livingroom PIR"
        device_class: motion
        value_template: "{{ is_state('binary_sensor.livingroom_pir1', 'on') or is_state('binary_sensor.livingroom_pir2', 'on') }}"
################################################################################        
################################################################################
      hall_pir:
        friendly_name: "Hall PIR"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "6E763C") }}'
        delay_off: '00:00:06'
        device_class: motion
         
      bedroom_pir:
        friendly_name: "Bedroom PIR"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "B0DA2C") }}'
        delay_off: '00:00:06'
        device_class: motion
      
      landing_pir:
        friendly_name: "Landing PIR"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "6204BC") }}'
        delay_off: '00:00:06'
        device_class: motion
        
      aarons_room:
        friendly_name: "Aarons PIR"
        value_template: '{{ is_state("sensor.sonoff_bridge_443", "C9AC2C") }}'
        delay_off: '00:00:06'
        device_class: motion  

Hope that helps you out

2 Likes