I pasted this into the yaml file:
mqtt:
switch:
- name: output64
state_topic: "KC868_A64/D4D4DAE11DC0/STATE"
command_topic: "KC868_A64/D4D4DAE11DC0/SET"
payload_on: '{"output64":{"value":true}}'
payload_off: '{"output64":{"value":false}}'
state_on: true
state_off: false
After this I can control the output64 from HA.
But I don't see the history and event log in HA.
Уже разобрался. Спасибо!
mqtt:
switch:
- name: output64
state_topic: "KC868_A64/D4D4DAE11DC0/STATE"
command_topic: "KC868_A64/D4D4DAE11DC0/SET"
payload_on: '{"output64":{"value":true}}'
payload_off: '{"output64":{"value":false}}'
state_on: true
state_off: false
After this I can control the output64 from HA.
But I don't see the history and event log in HA.
Уже разобрался. Спасибо!