Smart Home Automation Forum
Connection to the Home Assistant app? - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A32/A32 Pro (https://www.kincony.com/forum/forumdisplay.php?fid=27)
+--- Thread: Connection to the Home Assistant app? (/showthread.php?tid=2533)

Pages: 1 2


Connection to the Home Assistant app? - Wojtek - 01-24-2023

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?


RE: Connection to the Home Assistant app? - admin - 01-25-2023

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


RE: Connection to the Home Assistant app? - Wojtek - 01-26-2023

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

           


RE: Connection to the Home Assistant app? - admin - 01-26-2023

"MQTT" broker address: you should use mqtt://192.168.32.5 now you are using 192.168.32.5 need add mqtt://


RE: Connection to the Home Assistant app? - Wojtek - 01-26-2023

Ok, thx, its connected now.
is my code for configuration is correct? I can't find new entity in HA, new switch?


RE: Connection to the Home Assistant app? - admin - 01-26-2023

value_template: '{{ value_json.output1.on }}' replace with: value_template: '{{ value_json.output1.value }}'


RE: Connection to the Home Assistant app? - Wojtek - 01-26-2023

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.

   
   


RE: Connection to the Home Assistant app? - admin - 01-27-2023

we will begin work at 1-29-2023, then give you feedback.


RE: Connection to the Home Assistant app? - Wojtek - 01-27-2023

Happy New Year!


RE: Connection to the Home Assistant app? - admin - 01-29-2023

ok, we have tested, after some days later i will send you new firmware.