template:
- binary_sensor:
- name: Boiler Faults
state: >
{{ expand('group.chhw_sensors') | selectattr('state', 'in', ['unavailable', 'unknown', 'none']) | list | count > 0 }}
To be verified: does a group’s state value change to unavailable if the state value of one of its members changes to unavailable?
Answer: No.
According to the documentation, all members of the group must be unavailable for the group’s state to become unavailable.
The group state is
unavailableif all group members areunavailable.