02-06-2023, 10:20 PM
Thank you very much but I am not be able to make it works
Attached send you some pintures.
Now my code is:
mqtt:
switch:
- name: 'output1'
unique_id: output1
command_topic: 'KC868_A8/4091519110F8/set'
state_topic: 'KC868_A8/4091519110F8/state'
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false
Attached send you some pintures.
Now my code is:
mqtt:
switch:
- name: 'output1'
unique_id: output1
command_topic: 'KC868_A8/4091519110F8/set'
state_topic: 'KC868_A8/4091519110F8/state'
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false