Temperature sensor with 0.1 precision? (EU)

Strange that it would work for you. I checked in the My Devices area in the IDE as well as with the Classic app (dashboard and device) and new app and they all read as integers (21 or 22 degree C). The only place a decimal is shown (and always was) was in the new app in the history section, but it is always “.0” for all of my temp sensors using both the ST Device Handler and this custom one.

I’ve added the code and will check the reports in live logging. Looking at the live logging events today the only thing that looks different on the sensor I’m testing is the tilt sensors is getting routinely activated and I’m not sure why.

Thanks for the help (again).

Hit refresh in the app, and the live logging should show the description.

1 Like

Interesting. Sensor temperature has been changing, the Apps show the change as does the Simple Event Logger I’m using to a Google Sheet. However in the IDE/Live Logging shows nothing, even after I refreshed it. Is the “description” a unformatted string that has the raw sensor data? Wondering if I should just copy the code into a new Handler and assign that one.

550ed40d-ea08-4487-90a5-c4068903583a 5:35:46 PM: debug Battery Percentage rawValue = 185 -> 92.5%
550ed40d-ea08-4487-90a5-c4068903583a 5:35:45 PM: debug Acceleration inactive
550ed40d-ea08-4487-90a5-c4068903583a 5:35:38 PM: debug Refreshing Values

Well that worked. Created a new event handler with the same code, published it, then nothing. I needed to refresh it in the Classic app and then decimals now appear in both the new and classic app.

Interesting in the Live Log two decimals appear however one decimal in all of the other screens. The description string though only showed once when I refreshed it. I would have thought that it would show in the live log each time the temp changes.

Thanks alot.

Now I get to see how precise versus accurate these sensors are. I care more about precision and I read somewhere that a lot of the 1 degree C accurate sensors are 0.1 degree precise which would be great.

Hmmm…now I can’t seem to modify Automations that have this device now. Argh…deleting the Automations and recreating them worked. Perhaps switching Device Handlers creates problems for Automations.

2 Likes

The description has the value with two decimals. The code grabs from the description and rounds it to one decimal only.

I am happy that it has worked.

@nmaycher, By the way, ST has changed the code and now the device reports decimal value with the Stock DH as well.