-
Notifications
You must be signed in to change notification settings - Fork 7
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
Format of MQTT server #7
Comments
Hi, you have to provide only the tld like mqtt.home.com or the IP address, without a port. Port 1883 will be used for the MQTT communication, there is no way to define a custom port with current firmware. Thanks |
the sensor data is located inside the homeassistant topic, |
Great, thanks! I've done a packet capture, and I can see the device talking to my MQTT server - but unfortunately, now it's saying that the "Connection Refused: not authorized" I simply copied and pasted the mqtt password from my password manager to the wifi configure screen, and it works OK on Tasmota devices (for example). The password is quite long though: it's 64 characters (I think that was what was generated by Home Assistant). Is there is a limit for the TeHyBug? Actually, I just checked my packet capture, and it has the MQTT connect command. Notably it says:
Not sure why the username is 0 length, but yes, the password is missing 40 chars too. |
Ah, I see 😅 tehybug/tehybug_co2_firmware/Config.h Line 10 in 45a030c
|
Hi, I have increased the password size to 65 charactes |
Hey, thanks, I've updated the firmware, but for some reason the bug is not letting me reset the wifi settings. When I hold the mode button for 15 seconds, the LED goes blue, but then after a little while (20 seconds), it goes back to green, and no wifi from the bug shows up. It also comes back on to the network, so I can reach it for the But since I can't reset the wifi details, I can't test if I can put in a longer password for the mqtt server. If I look at the serial output when I do a wifi reset, I get:
(don't worry about the I got the latest firmware from today: https://github.com/gumslone/tehybug/blob/f0ead97b1b2bafae8d778b305eb4ba2f8d2ac7f6/tehybug_co2_firmware/tehybug_co2_firmware.ino.esp8285.bin |
Latest firmware fixes it! It shows up in Home Assistant now - great, thanks! |
tehybug/tehybug_co2_firmware/README.md
Line 58 in 45a030c
Does the MQTT server need to have a port specified?
e.g., will
mqtt.home.com
work, or would it need to be:mqtt.home.com:1883
Could you also specify some more details about what topics it will publish?
I'm having trouble getting it to talk to my mqtt server, but I'm not sure what to look for.
The text was updated successfully, but these errors were encountered: