I am not too experienced in programming. As I understand your code uses the first two digits from the sensor ID as an integer. Unfortunately the TFA sensor ID starts with 0E, so the enums would be 0.
I somehow managed to get it working in my setup with enum 0 but I think this is not a very future-proof solution. How could this be done? With charCodeAt instead of parseInt?
If you give me a hint, I'll try to implement my sensors.
I use this temperature/humidity sensor from TFA for weatherhub.
The html part on measurements.mobile-alerts.eu looks like this
I am not too experienced in programming. As I understand your code uses the first two digits from the sensor ID as an integer. Unfortunately the TFA sensor ID starts with
0E
, so the enums would be0
.I somehow managed to get it working in my setup with enum
0
but I think this is not a very future-proof solution. How could this be done? WithcharCodeAt
instead ofparseInt
?If you give me a hint, I'll try to implement my sensors.