Sonoff Bridge MQTT PIR Configuration

I use to use that kind of automation to send the payload_off but there’s another way to do that as explained here: HA to RF 433 gateway and how to set up binary_sensors to work with RF payloads. I just followed swiftlyfalling instructions and it’s working really nice.