02-05-2023, 10:10 PM
I had my KC868-A8 running under ESPHOME. With KCS firmware ESPHOME doesn't work...
I configure my MQTT server and it is connected with KCS to home assistant.
Now I tried to use the Output-1 switch. I edit my configuration.yaml and write:
mqtt:
switch:
- name: 'output-1'
unique_id: output-1
state_topic: 'KC868_A8/4091519110F8/state'
command_topic: 'KC868_A8/4091519110F8/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
I can see the entity but it doesn't work.
I'm beginer. Can you help me?
I configure my MQTT server and it is connected with KCS to home assistant.
Now I tried to use the Output-1 switch. I edit my configuration.yaml and write:
mqtt:
switch:
- name: 'output-1'
unique_id: output-1
state_topic: 'KC868_A8/4091519110F8/state'
command_topic: 'KC868_A8/4091519110F8/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
I can see the entity but it doesn't work.
I'm beginer. Can you help me?