Hi Community,
I am new to MQTT and sensors running a Sonoff RF Bridge. I have setup the MQTT as outlined in the HA documentation. I used the testing protocols for MQTT, which seem to work fine. Where i have been coming unstuck i think is in the “configuration.yaml”.
I have been spent days searching and testing to no avail. It is driving me mad! I would have thought there was an easy tutorial on this process but seems not. I will make one, once i have success.
My configuration.yaml file looks like this:
sensor:
- platform: mqtt
state_topic: 'tele/sonoff-bridge/RESULT'
value_template: '{{value_json.RfReceived.Data}}'
name: "sonoff bridge 443"
expire_after: 1
- platform: template
sensors:
study_pir:
friendly_name: "Study PIR"
value_template: '{{ is_state("sensor.sonoff_bridge_443", "F73D8E") }}'
device_class: motion
How do i configure the “configuration.yaml” to read and publish the state of the Sonoff PIR2 Motion Sensor with Sonoff RF Bridge flashed with Tasmota?
I appreciate any assistance offered.
Kind regards
Ben