Sensor not working


I have a Sonoff bridge since today, there is a magnetic contact on it, unfortunately I don’t get it working. Will put the details below.

 - platform: mqtt
   name: "WC Deur"
   state_topic: "tele/bridge/RESULT"
   value_template: '{{value_json.RfReceived.Data}}'
   payload_on: "BC6129"
   off_delay: "30"
   device_class: motion
   optimistic: false
   qos: 1
   retain: false

Log:Sat Dec 07 2019 18:32:18 GMT+0100 (Midden-Europese standaardtijd)
Invalid config for [sensor.mqtt]: [payload_on] is an invalid option for [sensor.mqtt]. Check: sensor.mqtt->payload_on. (See ?, line ?). Please check the docs at

From the documents:

Defines a template to extract a value from the payload. Available variables: entity_id . Remove this option when ‘payload_on’ and ‘payload_off’ are sufficient to match your payloads.

I suggest reading this topic :