Deconz groups are exposed to Home Assistant with an
all_on
attribute which indicates if all lights in a group
are currently switched on.
This app exposes this attribute as an additional binary_sensor. For this purpose,
- it looks for all light entities that have an
all_on
attribute, - it creates a sensor with an
_all_on
suffix, - it adds a listener to update the state of the groups,
- it removes the sensors on (AppDaemon) shutdown.
Add this snippet to your AppDaemon configuration file:
all_on_groups:
module: all_on_groups
class: AllOnGroups