Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC 868-A16
#1
hi, please maybe we could make a full example with the kc868-A16 controller to integrate into the home assistant MQTT using the KCS firmware.
Reply
#2
there is KC868-A32 demo config for home assistant by MQTT, you can try:
https://www.kincony.com/forum/showthread.php?tid=2543
if feel hardware to understand, when we have free time, we can make a video tour.
Reply
#3
(02-09-2023, 10:40 PM)admin Wrote: there is KC868-A32 demo config for home assistant by MQTT, you can try:
https://www.kincony.com/forum/showthread.php?tid=2543
if feel hardware to understand, when we have free time, we can make a video tour.

Here's my file what might be missing


Attached Files
.txt   KC868-16A.txt (Size: 14.44 KB / Downloads: 217)
Reply
#4
your state_topic and command_topic is wrong.
you only need add 16 DO and 16 DI command. The server topic because i have also added KC868-Server, you not need to use. so you need to 16 DO and 16 DI as these format:

  - name: 'a16-kcs-output-1'
    unique_id: a16-kcs-output-1
    state_topic: 'KC868_A16/B48A0A404560/STATE'         replace B48A0A404560 with your boad's ID, you can check in your board webpage.
    command_topic: 'KC868_A16/B48A0A404560/SET'       replace B48A0A404560 with your boad's ID, you can check in your board webpage.
    payload_on:  '{"output1":{"value":true}}'
    payload_off:  '{"output1":{"value":false}}'
    value_template: '{{ value_json.output1.value }}'
    state_on: true
    state_off: false


  - name: 'a16-kcs-input-1'
    unique_id: a16-kcs-input-1
    state_topic: 'KC868_A16/B48A0A404560/STATE'      replace B48A0A404560 with your boad's ID
    value_template: '{{ value_json.input1.value }}'
    payload_on: true
    payload_off: false

   
Reply
#5
(02-10-2023, 10:40 PM)Admin Wrote: jūsų state_topic ir command_topic yra neteisingi.
jums reikia pridėti tik 16 DO ir 16 DI komandas. Serverio tema, nes aš taip pat pridėjau KC868-Server, jums nereikia naudoti. taigi jums reikia 16 DO ir 16 DI, nes šie formatai: - pavadinimas: "a16-kcs-output-1" unique_id: a16-kcs-output-1
state_topic:

"KC868_A16/B48A0A404560/STATE"
pakeiskite B48A0A404560 savo boad ID, galite patikrinti savo lentos tinklalapyje.
command_topic: "KC868_A16/B48A0A404560/SET" pakeiskite B48A0A404560 savo boad ID, galite tai patikrinti savo lentos tinklalapyje.
payload_on: '{"output1":{"value":true}}' payload_off: '{"output1":{"value":false}}' value_template: '{{ value_json.output1.value }}' state_on: true
state_off: false


- pavadinimas: 'a16-kcs-input-1' unique_id: a16-kcs-input-1
state_topic: 'KC868_A16/B48A0A404560/STATE' pakeiskite B48A0A404560 savo boad ID
value_template: '



{{ value_ json.input1.value }}'
payload_on: true
payload_off: false
Kai perkraunu namo asistentas meta stalą, kas galėtų būti

(02-12-2023, 03:45 PM)Eligijus Wrote:
(02-10-2023, 10:40 PM)Admin Wrote: jūsų state_topic ir command_topic yra neteisingi.
jums reikia pridėti tik 16 DO ir 16 DI komandas. Serverio tema, nes aš taip pat pridėjau KC868-Server, jums nereikia naudoti. taigi jums reikia 16 DO ir 16 DI, nes šie formatai: - pavadinimas: "a16-kcs-output-1" unique_id: a16-kcs-output-1
state_topic:

"KC868_A16/B48A0A404560/STATE"
pakeiskite B48A0A404560 savo boad ID, galite patikrinti savo lentos tinklalapyje.
command_topic: "KC868_A16/B48A0A404560/SET" pakeiskite B48A0A404560 savo boad ID, galite tai patikrinti savo lentos tinklalapyje.
payload_on: '{"output1":{"value":true}}' payload_off: '{"output1":{"value":false}}' value_template: '{{ value_json.output1.value }}' state_on: true
state_off: false


- pavadinimas: 'a16-kcs-input-1' unique_id: a16-kcs-input-1
state_topic: 'KC868_A16/B48A0A404560/STATE' pakeiskite B48A0A404560 savo boad ID
value_template: '



{{ value_ json.input1.value }}'
payload_on: true
payload_off: false
Kai perkraunu namo asistentas meta stalą, kas galėtų būti

(02-12-2023, 03:45 PM)Eligijus Wrote:
(02-10-2023, 10:40 PM)Admin Wrote: jūsų state_topic ir command_topic yra neteisingi.
jums reikia pridėti tik 16 DO ir 16 DI komandas. Serverio tema, nes aš taip pat pridėjau KC868-Server, jums nereikia naudoti. taigi jums reikia 16 DO ir 16 DI, nes šie formatai: - pavadinimas: "a16-kcs-output-1" unique_id: a16-kcs-output-1
state_topic:

"KC868_A16/B48A0A404560/STATE"
pakeiskite B48A0A404560 savo boad ID, galite patikrinti savo lentos tinklalapyje.
command_topic: "KC868_A16/B48A0A404560/SET" pakeiskite B48A0A404560 savo boad ID, galite tai patikrinti savo lentos tinklalapyje.
payload_on: '{"output1":{"value":true}}' payload_off: '{"output1":{"value":false}}' value_template: '{{ value_json.output1.value }}' state_on: true
state_off: false


- pavadinimas: 'a16-kcs-input-1' unique_id: a16-kcs-input-1
state_topic: 'KC868_A16/B48A0A404560/STATE' pakeiskite B48A0A404560 savo boad ID
value_template: '



{{ value_ json.input1.value }}'
payload_on: true
payload_off: false
Kai perkraunu namo asistentas meta stalą, kas galėtų būti

(02-12-2023, 03:45 PM)Eligijus Wrote:
(02-10-2023, 10:40 PM)Admin Wrote: jūsų state_topic ir command_topic yra neteisingi.
jums reikia pridėti tik 16 DO ir 16 DI komandas. Serverio tema, nes aš taip pat pridėjau KC868-Server, jums nereikia naudoti. taigi jums reikia 16 DO ir 16 DI, nes šie formatai: - pavadinimas: "a16-kcs-output-1" unique_id: a16-kcs-output-1
state_topic:

"KC868_A16/B48A0A404560/STATE"
pakeiskite B48A0A404560 savo boad ID, galite patikrinti savo lentos tinklalapyje.
command_topic: "KC868_A16/B48A0A404560/SET" pakeiskite B48A0A404560 savo boad ID, galite tai patikrinti savo lentos tinklalapyje.
payload_on: '{"output1":{"value":true}}' payload_off: '{"output1":{"value":false}}' value_template: '{{ value_json.output1.value }}' state_on: true
state_off: false


- pavadinimas: 'a16-kcs-input-1' unique_id: a16-kcs-input-1
state_topic: 'KC868_A16/B48A0A404560/STATE' pakeiskite B48A0A404560 savo boad ID
value_template: '



{{ value_ json.input1.value }}'
payload_on: true
payload_off: false
Kai perkraunu namo asistentas meta stalą, kas galėtų būti


Attached Files Image(s)
                   

.txt   geraskc868-16a.txt (Size: 9.62 KB / Downloads: 181)
Reply
#6
i have told you to use:

state_topic: 'KC868_A16/90380CA4382C/STATE'
command_topic: 'KC868_A16/90380CA4382C/SET'

but you are using: (it's mistake) Do you see it??

state_topic: 'KC868_a16/KC868_A16/90380CA4382C/STATE'
command_topic: 'KC868_a16/KC868_A16/90380CA4382C/SET'
Reply
#7
(02-13-2023, 12:19 AM)admin Wrote: i have told you to use:

state_topic: 'KC868_A16/90380CA4382C/STATE'
command_topic: 'KC868_A16/90380CA4382C/SET'

but you are using: (it's mistake) Do you see it??

state_topic: 'KC868_a16/KC868_A16/90380CA4382C/STATE'
command_topic: 'KC868_a16/KC868_A16/90380CA4382C/SET'
I fixed it but it still doesn't work Sad


Attached Files Image(s)
       

.txt   kc.txt (Size: 9.16 KB / Downloads: 189)
Reply
#8
your photo is not clearly, please use the screenshot tool, i think you just check with the home assistant error message.
Reply
#9
(02-14-2023, 12:16 AM)admin Wrote: your photo is not clearly, please use the screenshot tool, i think you just check with the home assistant error message.

I upload my file


Attached Files Image(s)
                               

.txt   KC868-A16.txt (Size: 9.16 KB / Downloads: 202)
Reply
#10
(02-14-2023, 10:14 AM)eligijus Wrote:
(02-14-2023, 12:16 AM)admin Wrote: your photo is not clearly, please use the screenshot tool, i think you just check with the home assistant error message.

I upload my file
 Can you help?
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)