@song85129 wrote:
Hi,
I have two sensor sending data to a cloud service.
I use rest sensor + template sensors to retrieve data from cloud service in json format.
Sensors send data to the cloud every 15mins
I set thescan_interval
to 600 in the rest sensor setting so ideally it should update the rest sensor every 10 mins. I can see this from log that the state of the rest sensor is updated every 10 mins.However, the template sensors which retrieve temperature from rest sensor json data doesn’t update as expected. It seems that the value only changes when there is a change of the json value.
In the template sensor, I use round(1) to round the number to 1 decimal. So my temperature sensor value in home assistant only shows points when there is a change to the value.
It seems that if I set the round(2) to round the number to 2 decimals. The update will be more frequent.Now I just want to have constant update interval of my temperature sensor even if the value is not changed.
I triedforce_update: true
in rest sensor, but it didn’t work,
I tried addingentity_id: sensor.time
, but it didn’t work.I don’t know what to do now, Does anyone encountered similar problem before?
Also is it possible to log the values in home assistant with 2 decimal places but on the lovelace UI cards and badges only shows value with 1 decimal place?
Thank you.
P.S. From my observation, the Aquara temperature sensor only send update when there is a value change through deconz usb gateway. I guess there is no way to change that too?
Posts: 4
Participants: 4