Replies: 4 comments 5 replies
-
Good catch with I'm not sure about the You can put this in the Developer Tools > Template box to see all timestamps.
|
Beta Was this translation helpful? Give feedback.
-
I think that with sort we can understand better how the data cames from car and API {% set data = namespace(list=[]) %}
{% for ent in device_entities(device_id('sensor.volvo_YOUR_CAR_ID_average_energy_consumption')) %}
{% set data.list = data.list + [(state_attr(ent, "api_timestamp") | string) + " : " + state_attr(ent, "friendly_name")] %}
{%- endfor %}
{% for l in ( data.list | sort) %}
{{ l }}
{%- endfor %} For me also the avg enrgy comsumption appear to have wrong timestamp showing the update/request time. Today I just connected the car on the charger and opened the door to show for a person, only this entities updated that time
|
Beta Was this translation helpful? Give feedback.
-
@thomasddn looking at this dates I found other thing : The API request count are using the config_entry date like battery capacity, I understand that capacity does not change without reconfiguration, but the request count should use the current timestamp to indicate the real time where it was updated. That should be the newest time from the integration component as it is updated after all calls are made. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been closed due to inactivity. |
Beta Was this translation helpful? Give feedback.
-
Is this correct idea?
I have two last_update_time template sensors.
last_update_time_api
This sensor use api_timestamp of
sensor.volvo_xc40_average_energy_consumption
This api_timestamp is updated every time when the api-call to server has been sucessfull.
last_update_time_car
This sensor use api_timestamp of
sensor.volvo_xc40_charging_connection_status
This api_timestamp is updated every time when the car had a connetion to the api server.
Beta Was this translation helpful? Give feedback.
All reactions