Sonoff Bridge MQTT Door Sensor value_json error

Another copy-paste problem. I don’t know where this code originated, but it’s never going to work in the form you’ve posted it — the binary_sensor is expecting to receive structured JSON but your automation is sending it a simple string. Solution in my post in this topic: