Hello, I’d like to have a device or entity that is updated based on the value of multiple motion sensors. I have 5 motion sensors upstairs in various rooms. I’d like to create a sensor called “upstairs” and to be active if any of the 5 motion sensors upstairs are active. What’s the best way to accomplish this?
Create a group containing the five motion sensors. The group’s state
will be on
when one or more motion sensors is on
and off
when all motion sensors are off
.
Thanks. That’s what I was looking for. I can’t see a UI to edit this? I have to manage it all in yaml?
Correct; there’s no UI for creating/modifying groups.
You must define them in configuration.yaml
as shown in the documentation or in groups.yaml
but only if your configuration.yaml
file contains this:
group: !include groups.yaml