tcs-monitor
tcs-monitor copied to clipboard
mqtt connected, no data on clientpublish
Hi Thomas, Thank You for this piece of code. I struggle with mqtt publish. i use mosquito on home assistant as a docker
This is serial monitor output:
23:00:03.892 -> *wm:[2] Connecting as wifi client... 23:00:03.892 -> *wm:[2] setSTAConfig static ip not set, skipping 23:00:03.892 -> *wm:[1] Connecting to SAVED AP: XZZX 23:00:04.446 -> *wm:[1] connectTimeout not set, ESP waitForConnectResult... 23:00:06.294 -> *wm:[2] Connection result: WL_CONNECTED 23:00:06.294 -> *wm:[1] AutoConnect: SUCCESS 23:00:06.294 -> *wm:[1] STA IP Address: 192.168.10.64 23:00:06.294 -> connected...yeey :) 23:00:06.294 -> local ip 23:00:06.294 -> 192.168.10.64 23:00:06.294 -> MQTT Server 192.168.1.39 23:00:06.294 -> MQTT port 1883 23:00:06.294 -> checking wifi... 23:00:06.294 -> connecting to MQTT...:ref 1 23:00:06.294 -> :wr 39 0 23:00:06.294 -> :wrc 39 39 0 23:00:06.339 -> :ack 39 23:00:06.339 -> :rn 4 23:00:06.339 -> :c0 1, 4 23:00:06.339 -> 23:00:06.339 -> connected!
There is no info about mqtt publish and i cant see welcome message on my broker.
Best regards
Wojtek
Hi, that seems to be correct. I did not implement a welcome message. The client only pushes to the MQTT topic when a message is decoded. I published the content of the HAautodiscovery.json to the Home Assistant discovery topic using MQTT explorer. I explain it in my blog: https://blog.syralist.de/en/posts/smarthome/klingel/#contents:connecting-to-home-assistant Hope that helps.