I’ve got some statistics sensors that give me a change between the last and current values, they are no longer working since the 2024.11.0 update (worked on 2024.10.4). I can see them show a value for a fraction of a second then always goes back to zero.
It seems like it is broken if I set the sample_size
to a value of 2
(which is what I want for comparing just the past 2 values).
The input value is being updated once per second (which i can see in the states).
- platform: statistics
name: pfSense NIC WAN In Counter Change Second
entity_id: sensor.pfsense_nic_wan_in_counter_raw
#Since scan_interval=1 we already are only doing per second
state_characteristic: change
sampling_size: 2
max_age:
minutes: 1
- platform: statistics
name: pfSense NIC WAN Out Counter Change Second
entity_id: sensor.pfsense_nic_wan_out_counter_raw
#Since scan_interval=1 we already are only doing per second
state_characteristic: change
sampling_size: 2
max_age:
minutes: 1
If I set sample_size
to anything >2 it works again but I really want to only consider the change between the newest 2 values.
The old 2024.10.4 would work: