Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection to the Home Assistant app?
#21
(02-01-2025, 05:10 PM)wchpikus Wrote: hello i try to add kc868-a32 mqqt to HA but in config file i got errors..
mqtt:

switch:

- name: 'output-1'
unique_id: output-1
state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
command_topic: 'server/8ae082ec66f37db231cf2b8f/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0


bad indentation of a sequence entry (141:8)

138 | - topic: "Esp32-rolety/connected"
139 |
140 | #Kincony hc868-a32
141 | mqtt:
--------------^

configuration.yaml.
is any example working with 14.02 HA?
It could be syntax error on yaml now, but i am weak on the yaml files.

your command and state TOPIC is wrong, please check with our mqtt protocol document.
Reply
#22
admin I downloaded the sample YAML config file here

https://www.kincony.com/forum/showthread.php?tid=2543

and the indentation in the file is not correct: there is an extra blank space before the lines I highlighted. I think this explains the error about the indentation.

   


wchpikus you should correct this, and then also replace 8ae082ec66f37db231cf2b8f with the serial of your own card.
Reply
#23
for example, here is relay1 of KC868-A32:
Code:
mqtt:
  switch:
   - name: 'a32-kcs-output-1'
     unique_id: a32-kcs-output-1
     state_topic: 'KC868_A32/08F9E08B1F58/STATE'
     command_topic: 'KC868_A32/08F9E08B1F58/SET'
     payload_on:  '{"output1":{"value":true}}'
     payload_off:  '{"output1":{"value":false}}'
     value_template: '{{ value_json.output1.value }}'
     state_on: true
     state_off: false
replace by your own serial number, check INDEX webpage what serial number have showed.
Reply


Forum Jump:


Users browsing this thread:
3 Guest(s)