I’ve been playing around with the new statistics card and managed to get most things working. Some of my esphome devices needed “state_class: measurement” to be added before the entities became available, but that’s all sorted. One thing I’m stuck with is a couple of Lux sensors which I can’t get to show up as being available for use with the long term statistics. As far as I can tell, the entities meat the required criteria. Developer Tools - states shows this
state_class: measurement
unit_of_measurement: lx
friendly_name: Hall LUX
device_class: illuminance
Which looks OK to me but maybe there is something that I haven’t spotted?
The devices in question are TSL2561 i2c and configured in esphome thus:
i2c:
sda: D2
scl: D1
scan: false
#id: bus_a
sensor:
- platform: tsl2561
name: "Study LUX"
address: 0x39
update_interval: 60s
They are working just fine - I just can’t fathom out how to make them available as entities for the new statistics card. I know that illuminance is a supported sensor type because the home assistant blog shows an example of the statistic card showing two lux sensors. Any help would be much appreciated.