I’m did upgrade appdaemon (3.0.0) and homeassistant (0.65.6)and I see that set_state is not working anymore. It use to work Any help? This is why I implemented appdaemon for get_state and set_state. All my scripts are half dead now.
The code is
self.set_state(“default”,entity,state=entityState[‘state’], attributes=entityState[‘attributes’])
and the log
AttributeError: ‘Groupper’ object has no attribute ‘set_state’
I discovered that also old code get_state need to be changed in this version from self.get_state(“sensor”) to self.get_state(“default”, “sensor”), but at least this one works.
we need more then 1 line from a logfile to determine what is wrong in your case.
but my intuition tell me that the class isnt connected to hass.Hass but to apapi.Appdaemon
thanks for all answers. I made an downgrade last night because my flowers watering depends on these scripts🌻
I have seen in the log that error related to set_state is from apapi.Appdaemon, not from hass.Hass. The Groupper class is derived from appapi.
Where to find docs to help me to change the scripts to use hass instead of apapi?
It is true I’m new in appdaemon, so please excuse me for any stupid question.