Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection to the Home Assistant app?
#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


Messages In This Thread
Connection to the Home Assistant app? - by Wojtek - 01-24-2023, 08:57 PM
RE: Connection to the Home Assistant app? - by Wojtek - 01-26-2023, 01:54 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)