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()?