Determine Group Entities from AppDaemon

Can I determine what entities are part of a HA group from AppDaemon?

I have HA groups setup for each bedroom in my house. Each group has the lights and trackers associated with the person that inhabits that room. Without hardcoding the relationships, I want to be able to monitor when someone leaves home and check their room to see if they turned off the lights and turned the ceiling fan down to a slow setting.

Yes. There is a original post somewhere about it, I’m using it in this post AppDaemon light schedule with sensor override



Now since I named each room consistently, and I know which tracker left, I can then read the group associated with that tracker, get the entities and adjust them as needed. Perfect.


Your welcome!

I’m planning on doing a similar thing with sensors and groups of lights.