Clear Appdaemon database

I have an app that does get_state(“light”) and makes sure that the lights are off when they are supposed to be off.

The problem I am having is, get_state(“light”) returns old entities that have been removed from the system. I have cleared the Home Assistant DB but this did not help. Appdaemon stores states locally so it doesnt have to get the states from the Home Assistant API, is there anyway to clear the Appdaemon’s memory of states so old entities isnt returned by get_state()?

it should at least be cleared and renewed when you restart appdaemon completely.
if i close AD and restart the non existing sensors are all gone.

Well, that was easy!

Thought i had restarted already, thanks for the hint!

1 Like