Closed redlefloh closed 7 months ago
I did a bit of digging and count: 38 and the python struct: ">2h15H22B10H" leads to 285 Bytes. I changed it to count: 31 and structure: ">2h15H22B3H" which still gives me all the template sensor values that I need and that now works fine. Looks like 2024.2 now pays closer attention to the length of the payload (or 2024.1. truncated it)? Either way, the above fixes the issue for me.
thanks for the input. I did some digging and seams 2024.2 or 2024.1 change the precision. Although the values in the struct are int they are converted by HA to float and displayed as for example 4.00. This leads to a way longer string and breaks it. I've added precision: 0 to the sensor, which removes the ".00" and the string fits again. Further the mapper state this way still work.
For some strange reasons, starting with HA 2024.2 I receive the error message below which leads to all the template sensors not being parsed correctly. When I downgrade back to HA 2024.1.6 everything works fine again? I could not find any changes in the HA release notes that were obviously connected to this issues.
Are you @mfaust78 or is anyone else seeing this issue (or maybe can confirm, that for them this still works also in 2024.2)? Thanks!
My configuration for reference: