Closed Sangoku closed 1 year ago
Please clean up your PIO environment. I cannot reproduce your observation.
I did. Clean Windows 10 install, VSC new all is new. I even installed the docker dev env. and compiled it there... Same behaviour.
The last release, v0.13.3 is working fine, I see the /motion topic fine then. But ofc it is missing the HAS integration sadly.
I would not open a bug task without trying everything I could think of.. Wasted 2 days on debugging When compiled from master the mqtt /motion topic does not get send. not once from the debugger console or in the mqtt server.
Things i tried: compiled with/without every WLED_DISABLE_xxx flag Then for every compile, tried to enable mqtt to get it to post. tht is why i hardcoded the sid and pass so i dont have to set it up everytime. turned on/of every flag in settings.. seems like it just won't publish to the /motion topic. the register topic gets posted but the referenced wled/62c9e7/motion never gets posted and the mqtt sensor just stays unavailable.
my workflof for debugging is:
compile -> upload to esp with esphome flasher -> reset -> see the integration being found by HASSIO -> either go to mqtt end enable it and restart/ or just add the integration.
Expected is that it should just show up in the integration.. but it shows up only in MQTT when you enable it in the settings.
As far i get from the commits on the branch https://github.com/Aircoookie/WLED/pull/2853 they had a git merge Error, my guess is something is broken. Did you do git pull from master when you compiled?
Please point me to a line in commit 7211e6b9293d089dab0a48c5219654db00dead79 where you think the change broke MQTT publishing (as I cannot find any line for publishing MQTT messages that was changed). The only change was to add publishing on homeassistant/binary_sensor/<mac address>/config
topic on MQTT broker (re)connect, which informs Home Assistant of available sensor. This message is retained so it may always show when browsing/querying MQTT broker.
Also I do not understand where your information on "on the branch #2853 they had git merge error" comes from? There were no errors when merging #2853.
Please comment or provide additional feedback.
Not reproducible.
What happened?
I tried all compiler flags to no avail.
The thing is just plainly broken by a git merge which the autor admits in the last GIT pull request.
Either he is not mentioning somthing or i am missing somthing.
To Reproduce Bug
platform_override.ini file: and it just DOES not work..
Expected Behavior
The esp should create a topic which describes the device. Which it does /hassio/binary-sensor/xxxxx
{"name":"WLED-Bathrom Motion","stat_t":"wled/62c9e7/motion","pl_on":"on","pl_off":"off","uniq_id":"8caab562c9e7_motion","dev_cla":"motion","exp_aft":1800,"device":{"name":"WLED-Bathrom","ids":"wled-sensor-WLED-62c9e7","mf":"WLED","mdl":"FOSS","sw":"0.14.0-b0"}}
And the device gets registered on led/62c9e7 BUT no matter what i do it wont post to the motion topic
no matter if any combination of the checkboxes are selected or if mqtt is configured to run or not.
Install Method
Self-Compiled
What version of WLED?
master lastest checkout 7.11.2022
Which microcontroller/board are you seeing the problem on?
ESP8266
Relevant log/trace output
When MQTT is enabled the publishing topic gets generated where the config states that the motion sensor should publish to the wled/deviceId/motion topic and that the sensor should listen to it.. That topic does not get generated no matter what i do.