09-09-2022, 08:03 AM
Is there a change in binary_sensorsyntax?
binary_sensor:
- platform: mqtt
name: 'H32B-input1'
unique_id: H32B-input1
state_topic: 'relay32/3dfd899b71b9d0bbad4f5a9d12345/state'
value_template: '{{ value_json.input1.on }}'
payload_on: 1
payload_off: 0
binary_sensor:
- platform: mqtt
name: 'H32B-input1'
unique_id: H32B-input1
state_topic: 'relay32/3dfd899b71b9d0bbad4f5a9d12345/state'
value_template: '{{ value_json.input1.on }}'
payload_on: 1
payload_off: 0