Replies: 4 comments 9 replies
-
Thanks for highlighting that, it's actually a bug that I'll have to fix. Will do asap. |
Beta Was this translation helpful? Give feedback.
-
I have removed the dot from the MQTT topic and that seems to fix the issue. Can you try it out on your side? If it doesn't work, please try removing retained topics using |
Beta Was this translation helpful? Give feedback.
-
First of all, the BSB_LAN_custom_defs.h file always stays the same, as already mentioned in the manual. The thing is that 20200 is always returning a value once you set a pin number for the BME280 in BSB-LAN's settings, as this is just an enumeration, not an indication of a successful initialization. The "query failed" means that the sensor is not detected for whatever reason. If you have reasons to believe that this is a bug, then please go to the issues section and file a proper bug report, including all the relevant information that is listed there. |
Beta Was this translation helpful? Give feedback.
-
Another user has filed a bug report here #703 which showed the same kind of problems and he confirmed that my fix solved the problem, so I unless you provide additional context, I assume that this was the same problem here. |
Beta Was this translation helpful? Give feedback.
-
Hey folks, Frederik,
Like many of us, I dived into home automation subject and started my first project of that type with the idea of making my heat pump smarter. After discovering dozens of "plug and play" devices which were actually not that smart, I came across Frederik's project and got in touch with him to order a BSB-LAN board.
The first months following, I was a bit busy and didn't spend much time setting things up but I was rather thinking which platform I would use for my project, collecting informations on the pros and cons of each solution and also reading a lot of documentation to get familiar with the whole environnement because I'm not much into IoT systems and coding.
I finally started the setup part few weeks ago and I'm already quite happy with the first results. AI helped a lot to understand how code works but it still has limits because the BSB-LAN project is very specific. After unsuccesful hours trying to solve my concern, I finally decided to post out there to ask for help or suggestions of alternative paths to explore.
To briefly sum up my configuration :
Hardware
Software
My problem :
I've connected a BME280 sensor to the right pins of the ESP 32 board extension. It's working fine as I can see temperature, humidity, pressure and altitude values directly in the BSB LAN interface. As it should be, the BME280 is correctly assigned to parameter 20200 with a value of 76, which correspond to its adress 0x76.
However, as I believe, measurements are not assigned to the proper parameter numbers. From what I could see in the BSB_LAN_defs.h file, the measurements are supposed to be assigned to numbers 20201, 20202, 20203 and 20204 but they end up being assigned to 20200.1, 20200.2, 20200.3 and 20200.4 numbers. I noticed the code was written using floating numbers, adding up increments of 0.1 to the BME_280 value which is assigned to 20200. It turns out only the 20200 entity is discovered by MQTT through Home Assistant automatic search.
--> I can easily find the different values of the BME280 using MQTT explorer
--> I've tried to reconfigure MQTT discovery from scratch but only the 20200 entity still shows up
--> I've tried to add them manually in the configuration.yaml file but the entity is not showing in the HA interface either
--> I've tried to replace 0.1 increments directly by integers in the BSB_LAN_defs.h file but as I could expect, that's not working and the code is broken doing this
For now, my conclusion is that there is a problem for MQTT to recognize entities with decimal values since only 20200 is showing up but not the other values.
Not sure this forum is the right place to discuss this type of issues but since it's mostly bsb-lan related, I thought that was relevant to do so. Also, I couldn't find any similar issues on my web searches and ChatGPT is out of ideas to solve this out.
I hope you can help me on that matter :)
Thanks for reading !
Beta Was this translation helpful? Give feedback.
All reactions