Platform statistics to check the latest update of a temperature sensor (ZigBee)

Sorry for my English.

Greetings to the whole community!

The purpose is to verify the latest update received, f.e. from a ZigBee temperature sensor or, in general, from ZigBee devices.

I created a statistical sensor like this:

platform: statistics
name: temperatura_ultimo_aggiornamento
state_characteristic: datetime_newest
entity_id: sensor.temperatura
sampling_size: 1

The sensor actually works well and brings me back the date/time of the last update that arrived.

The only problem is that it is exactly one hour behind, even though the timezone is set correctly.
image
image

Bug Home Assistant…?..or maybe it takes date from Zigbee2Mqtt / sensor…(I don’t think so).?..I can’t understand…thanks anyway for your attention.

1 Like