#ZHA Zigbee Question

1 messages · Page 1 of 1 (latest)

digital pier
#

I've created an experimental Zigbee Temperature Sensor EP using an Adafruit Feather ESP32-C6 in Arduino using the ESPRESSIF Arduino library.

It seems to be working well and is reliably connecting based on the following logic Report when the temperature changes by N degrees C or M minutes have passed without a report.

To test the time limit condition, I set the same temperature to a constant value. That worked and the divice reported and updated the Last seen Date/Time but I noticed that HA only appears to create a temperature value record when the temperature actually changes. Ran queries against the HA database using to SQLite to confirm that no temperature records were created after the initial record.

Is this behavior expected by design, or is there something I need to do to force the creation of a record every time the device reports to the controller even if the value is the same as the previous value?

I'm a Zigbee noob so I don/t know what I'm doing

cobalt salmon
#

HA only writes state to the DB when it changes

#

There is a last_reported timestamp in the state machine that can be used if for some reason you need to differentiate