![]() |
|
16B mqtt yaml file config how to - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=60) +--- Forum: B16 (https://www.kincony.com/forum/forumdisplay.php?fid=70) +--- Thread: 16B mqtt yaml file config how to (/showthread.php?tid=8111) |
16B mqtt yaml file config how to - itzek - 05-24-2025 Hello admin, I have the B16 ESP32-S3 controller and I want to connect it to Home Assistant using a regular mqtt configuration (not using MQTT (For Home Assistant)). This is what I'm trying, but it's not working: - name: " output-1 " unique_id: output-1 state_topic: ' relay16/DCDA0C8B9B5C/state' command_topic: ' relay16/DCDA0C8B9B5C/set' payload_on: '{"relay1":{"on":1}}' payload_off: '{"relay1":{"on":0}}' value_template: '{{ value_json.relay1.on }}' state_on: 1 state_off: 0 Can you give me an example of the configuration? RE: 16B mqtt yaml file config how to - admin - 05-25-2025 the topic is wrong, if you downloaded KCS v3 firmware, see this mqtt protocol document: https://www.kincony.com/forum/showthread.php?tid=7619 RE: 16B mqtt yaml file config how to - itzek - 05-25-2025 So the correct syntax is this: - name: "output-1" unique_id: "output-1" command_topic: KC868_B16/DCDA0C8B9B5C/set state_topic: KC868_B16/DCDA0C8B9B5C/state payload_on: '{"output01":{"value":true}}' payload_off: '{"output01":{"value":false}}' value_template: '{{ value_json.output01.on }}' state_on: 1 state_off: 0 If so it still doesn't work RE: 16B mqtt yaml file config how to - admin - 05-25-2025 take a photo of your KCS webpage -- protocol, if you enabled mqtt protocol, webpage will showed topic. your topic is wrong. B16/DCDA0C8B9B5C/set B16/DCDA0C8B9B5C/state i suggest see the webpage of "protocol". RE: 16B mqtt yaml file config how to - itzek - 05-25-2025 On the protocol page it appears as you mentioned B16, Regarding the on and off commands it should be like in the example? payload_on: '{"output01":{"value":true}}' payload_off: '{"output01":{"value":false}}' value_template: '{{ value_json.output01.on }}' state_on: 1 state_off: 0 or like this payload_on: '{"relay1":{"on":1}}' payload_off: '{"relay1":{"on":0}}' value_template: '{{ value_json.relay1.on }}' state_on: 1 state_off: 0 RE: 16B mqtt yaml file config how to - admin - 05-25-2025 Code: switch:RE: 16B mqtt yaml file config how to - itzek - 05-26-2025 Thanks admin, it works. RE: 16B mqtt yaml file config how to - admin - 05-26-2025 you are welcome. |