I’m testing with sending a temperature over wifi to the API. Works fine, but I noticed every now and then there’s a gap in de recording of the temperature.
On closer look, it’s not the sending device, but pimatic ignoring the update.
I attached the device (ESP8266) to my console monitor, watching the serial output. I can see the ESP is making contact with the API and getting a OK back, but the update is nowhere to find in pimatic. I have looked directly into the SQLite DB and couldn’t find the missing records. Somehow pimatic ignores the update ?
http://zooi.oostindie.com/images/739capture.png
http://zooi.oostindie.com/images/596Capture2.png
You can see that in 3 cases the API is contacted and returns a ‘true’ as answer. But the update is not visible in pimatic.
Since the serial is showing good connection and response from the API, I’m unsure if I should look into my code or it is a pimatic bug ?
EDIT: Looks like it is only recorded as new value when the update is different than the current value. How should I solve this for a temperature device/variable?