Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt connected, no data on clientpublish #4

Open
neozerocooler opened this issue Nov 21, 2021 · 1 comment
Open

mqtt connected, no data on clientpublish #4

neozerocooler opened this issue Nov 21, 2021 · 1 comment

Comments

@neozerocooler
Copy link

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

@Syralist
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants