Fan speed animation based on fan speed from entity #30
vajonam
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in this example I am chagning the speed of animation of a fan icon based on the speed of the fan.
yaml
here the fan entity from home assistant returns
low
,medium
andhigh
which I can read from the entity attribute.I have 3 classes that set based on the entity attribute but can easily changed to entity state if the state has more than 2 responses. IT also changes the colour of the fan, so yellow, orange to dark orange for speeds.
css
result
Beta Was this translation helpful? Give feedback.
All reactions