Skip to content

Instantly share code, notes, and snippets.

@ericvitale
Created October 20, 2020 14:44
Show Gist options
  • Save ericvitale/629c4314bd44900b1ba47bdcaa7c3057 to your computer and use it in GitHub Desktop.
Save ericvitale/629c4314bd44900b1ba47bdcaa7c3057 to your computer and use it in GitHub Desktop.
Example of how to group motion sensors into a single sensor in Home Assistant.
platform: template
sensors:
group_motion:
device_class: motion
value_template: >-
{{
is_state('binary_sensor.motion_sensor_01_motion', 'on')
or
is_state('binary_sensor.motion_sensor_02_motion', 'on')
or
is_state('binary_sensor.motion_sensor_03_motion', 'on')
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment