(04-09-2023, 12:14 AM)admin Wrote: if you are using KC868-H32 old controller, it's not support MQTT. you can take a photo of your controller whole box. let me have a look.
KC868 set to use mosquito broker (MQTT mode). Using configuration attached (config_base_kc868.txt) but state of the entitiess is Unknown. Although I confirmed that mosquito broker is running by publishing and listening a test message when I turn on digital input 1 or 2 i don't see nothing published on server/acf25f1d39adfbe31effb56b/state.
compare with these code, your config code have some SPACE, you need to delete.
After using MQTT Explorer I noticed the server is sending messages to relay32/xxxxxxxxxxxxxxxxxxxxxxxx/state instead of server/xxxxxxxxxxxxxxxxxxxxxxxx/state. ... after changing that it worked.
Now one question: Why in MQTT mode the responses are so slow and sometimes when click wall switch it doesn't work? Like laggy...
compare with these code, your config code have some SPACE, you need to delete.
After using MQTT Explorer I noticed the server is sending messages to relay32/xxxxxxxxxxxxxxxxxxxxxxxx/state instead of server/xxxxxxxxxxxxxxxxxxxxxxxx/state. ... after changing that it worked.
Now one question: Why in MQTT mode the responses are so slow and sometimes when click wall switch it doesn't work? Like laggy...
Thanks
Interesting:
- I completeley removed Mosquitto Broker
- Disabled Wifi on Server
- Re-installed Mosquito broker
- Now server is publishing in server/* instead of relay32/* (don't know why)
- It's not laggy anymore.
Want to use mqtt on my a16 board, with Wifi connection and ESPHome software (is installed) in cooperation with Home Assistant (Broker installed).
Questions:
1. Cannot locate the UID of the a16-board so far; how to do that?
2. Is there a sample config file for mqtt and the a16-board?
thx
1. you need download KCS firmware to A16 board. then you can login webpage see the UID , that called "serial number" on webpage.
how to use KCS firmware, here is online guide: https://www.kincony.com/esp32-kcsv2-firmware.html
2. enable "MQTT" protocol
3. here is mqtt integration demo for A8S board, but you can also use for A16, just only change some PCF8574 pin define and i2c address. https://www.kincony.com/forum/showthread.php?tid=3274