iMicknl / ha-nest-protect

Nest Protect integration for Home Assistant. This will allow you to integrate your smoke, heat, co and occupancy status real-time in HA.
MIT License
334 stars 63 forks source link

Nest Remote Temperature Sensor Puck not showing up in 'statistics' tables #320

Closed puterboy closed 3 months ago

puterboy commented 6 months ago

The problem

I installed Nest Protect last night and it added my three Nest Remote Sensor Pucks as new entities to the states_meta table so they record data to the states table. However, it does not add the new entities to the statistics_meta table and they don't seem to be tracked by short and long term statistics.

According to https://github.com/iMicknl/ha-nest-protect/pull/244, it seems like a fix was merged but I don't see it working for me.

What version of this integration (ha-nest-protect) has the issue?

0.4.0b4

What version of Home Assistant Core has the issue?

1.34.0

Device / Model

KR1

Diagnostics information

No response

Home Assistant log

Logs ``` Copy/paste any log here, between the starting and ending backticks (`) ```

Additional information

No response

puterboy commented 5 months ago

I'm not a HA expert, but I think what is missing is that the sensors need to define a state_class such as:

state_class: measurement
puterboy commented 5 months ago

As a temporary fix, add the following to config.yaml

homeassistant:
  customize:
    sensor.nest_temperature_sensor_<name1>_temperature:
      state_class: measurement
    sensor.nest_temperature_sensor_<name2>_temperature:
      state_class: measurement
    ...