Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection to the Home Assistant app?
#1
hello!
How to integrate with the Home Assistant application installed on the Kinocny server, RPi4? Does the KC868-A32 support the mqtt protocol, I'm afraid not? I want to connect 2 KC868-A32 and 1 Kincony server with Rassbery so that the Home Assistant app can manage and supervise it all. Can I ask for some instructions or advice?
Reply
#2
you can integreate KC868-A32 to home assistant by ESPHome, it's very easy. here is KC868-A32 config file for ESPHome: https://www.kincony.com/forum/showthread.php?tid=1772
if you must want integrate to home asisstant by MQTT, you can download the newest "KCS" firmware (we will release soon), that firmware support MQTT,http,modbus, tcp, here is details: https://www.kincony.com/forum/forumdisplay.php?fid=40
Reply
#3
The installation of KCS was easy and fast, thank you very much, that was very nice.
However, I have a question about MQTT setup.
I entered username, password, port 1883, brooker address. This data seems to be correct, but mqtt status in KCS monitor is disconnected.
I tried to add the configuration in the configuration.yaml file in Home Assistant but I'm not sure if it's spelled correctly:
i tried to use the instructions https://www.kincony.com/forum/attachment.php?aid=1779
but i am very beginner, writing code is very hard for me. Can I ask for a ready-made correct text for configuring outputs / inputs in home assistant?

Can I edit in configuration.yaml

name: 'output-1'
OR
unique_id: output-1
 
to make it easier to distinguish which switch is from KC868-Server and which switch is from KC868-A32? Home assistant configuration file is starting to get messy, lots of 'output'. I would like the name output to contain e.g. output-1 A32, or output-1 kitchen LED lamp.



MY try, probably something is wrong, it should be switch or something another?

mqtt:

  switch:

  - name: 'output-1'
    unique_id: output-1
    state_topic: 'KC868_A32/58BF251F90B0/state'
    command_topic: 'KC868_A32/58BF251F90B0/set'
    payload_on:  '{"output1":{"value":true}}'
    payload_off:  '{"output1":{"value":false}}'
    value_template: '{{ value_json.output1.on }}'
    state_on: true
    state_off: false

           
Reply
#4
"MQTT" broker address: you should use mqtt://192.168.32.5 now you are using 192.168.32.5 need add mqtt://
Reply
#5
Ok, thx, its connected now.
is my code for configuration is correct? I can't find new entity in HA, new switch?
Reply
#6
value_template: '{{ value_json.output1.on }}' replace with: value_template: '{{ value_json.output1.value }}'
Reply
#7
After uploading KCS, I have the impression that it does not detect inputs from switches shorting to GND. Previously, the input shorting to ground gave a temporary activation of the output contactor on the board.

   
   
Reply
#8
we will begin work at 1-29-2023, then give you feedback.
Reply
#9
Happy New Year!
Reply
#10
ok, we have tested, after some days later i will send you new firmware.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)