Hello guys,
I tested my code with Developers tool but in yaml file have this error missed comma between flow collection entries my code is?
binary_sensor:
- name: ‘sw1’
unique_id: sw-1
state_topic: ‘server/XXXXXXXXXXXXXXXXXXXXX/state’
value_template: {{ (state_attr(‘value_json.sw1’ , ‘on’)) }}
payload_on: ‘1’
payload_off: ‘0’