History/ recorder of Fan percentage

Hello,

I have an Itho Fan that is connected to Home Assistant. Via the Fan service in HA I can set the percentage of this fan. In my recorder (I use influxdb) I don’t see the fan percentage recorded (I want to make a correlation between people in the house and fan percentage for co2). I am recording everything, do I need to setup something special to record the percentage of the HA Fan service? I don’t have the percentage in my device within HA, so it’s not recorder on the ‘device’ level.

Try pulling the fan percentage out into its own template sensor. Then add that to the recorder. That’ll make it easy to chart. The template expression which you can test in developer tools/templates should be

{{ state_attr(‘fan.my_fan’,’percentage’) }}
2 Likes