Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lesson9 - integrate KC868-Server to home assistant by MQTT
#28
(04-11-2023, 12:06 AM)admin Wrote: you are using KC868-server, so topic: ‘relay32/a76735003767977252b3c64d/state’  replace with ‘server/a76735003767977252b3c64d/state’
topic: ‘relay32/a76735003767977252b3c64d/set’ replace with ‘server/a76735003767977252b3c64d/set’
NOT "relay32".

Example of config:-

mqtt:
  switch:
  - name: ‘output-1’
    unique_id: output-1
    state_topic: ‘server/a76735003767977252b3c64d/state’
    command_topic: ‘server/a76735003767977252b3c64d/set’
    payload_on: ‘{“relay1”:{“on”:1}}’
    payload_off: ‘{“relay1”:{“on”:0}}’
    value_template: ‘{{ value_json.relay1.on }}’
    state_on: 1
    state_off: 0
   
i have changed the configuration file for all the 16 output but not working -- Output Light status is showing "ON" - trying to make it "off" not working
Thanks & Regards,
Arshad Abbas
Smile
Reply


Messages In This Thread
RE: Lesson9 - integrate KC868-Server to home assistant by MQTT - by ARSHAD - 04-11-2023, 08:38 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)