#How to use a sensor group in the motion sensor template?

1 messages · Page 1 of 1 (latest)

topaz crater
#

I am a bit confused by the fact that the motion sensor template only lets me choose a single motion sensor device. What is the point of the group helper if I can't actually choose it as a trigger? And even disregarding the template, how do I tie an automation to a sensor group? I can't choose it as a device.

burnt quest
#

Your going to need to clarify what it is you are asking...

What is this "motion sensor template" that you referenced?
Group helpers can be used in a trigger, you just use a State trigger, not a Device trigger. You can't choose it as a Device because it's an Entity, not a Device.

topaz crater
#

@burnt quest I meant the 'Motion-activated Light' blueprint that was included by default (homeassistant/motion_light.yaml). It has a field 'Entity' but I can't choose the binary sensor group

burnt quest
#

That selector is set up to only show binary sensors with the device class motion. What has likely happened is one of the sensors in the group doesn't have that device class, so the group entity wasn't given one. Normally, if all the sensors share the same device class it will be inherited by the group sensor.

The blueprinted automation will still work if you manually enter the group binary sensor's entity ID manually.

It should be possible to assign a device class to the group, but AFAIK there's no way to do it in the UI, you have to add it in the YAML configuration.

topaz crater
#

thanks, that solves my problem - I had to go into the settings and set the group to 'Show as: Motion'