#State based sensors don t restore state

1 messages · Page 1 of 1 (latest)

robust helm
#

The icon is only overwritten if it's charging, otherwise the default icon assigned by the device class is used as I understand.

hasty umbra
#

Ah, that could be the case indeed

#

anyway, your should use a trigger based template sensor for your use case

robust helm
#

thanks, will google about that..

robust helm
#

Do I basically have to add a trigger section the the definition and thats it?

hasty umbra
#

Basically yes

#

But then you can also use trigger variables

#

if you add: