Context - I have an esp8266 running ESPHome that has two 4 pin fans connected to it. One pin from the ESP goes to the PWM speed control for the fan and another pin goes to the fan’s tachometer to read the fan speed.
It’s easy to see and control the fan speed in home assistant but it’d be great to be able to include the fan speed as a state so it can be reported in the same card as the state control.
Please elaborate.
A “fan” entity has states on/off and may have a “percentage” attribute for a speed (measured in %).
Your particular integration provides a speed sensor with uom=“rpm”.
What do you mean by “include the fan speed as a state”?
Is it "include a speed in rpm as an attribute for a ‘fan’ entity?
Apologies for not using the correct terminology @Ildar_Gabdullin
Yes, ideally it would be possible to include a fan speed in rpm as an attribute for a ‘fan’ entity.
You may define attributes in template fan.