12-16-2024, 11:21 AM
Code:
mqtt:
switch:
- name: "output-1"
unique_id: "output-1"
state_topic: 'KC868_E16S/C82E18C85694/state'
command_topic: 'KC868_E16S/C82E18C85694/set'
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.output1.value }}'
state_on: 1
state_off: 0