#Any way to show a loading state when a switch is being toggled?

1 messages · Page 1 of 1 (latest)

bitter fulcrum
#

Hi, I have an integration that exposes some switch entities, when they are toggled I fire a bluetooth call that can take some time, is there any way to show the switch in some kind of loading state, like it happens for lock entities?

past epoch
#

not natively, switches are binary entities. I guess you could make it show as unavailable while it's processing?
Otherwise, you could tag an attribute onto it with "on/loading/off" as options and you could make mushroom cards based off that