Issue:
When setting the multiple prop value to true for the switchinput the trigger will no longer work. This seems to be caused by the fact that device_id does not support yaml lists like entity_id does.
Is there a work around for this or a different approach I should take?
I have run into the same limitation when building a blueprint for multiple IKEA open/close remotes.
Did you ever solve this and in case you did, how did you do it?
This is a simple syntax problem. Multiple: belongs at the level of entity: and filter:, one level up in the YAML. Integration, manufacturer, model all belong under filter:
Check the docs…
@Sir_Goodenough Thank you so much for the hint! But unfortunately, it is not working.
Now the blueprint is invalid with the error message:
Invalid blueprint:
extra keys not allowed @ data['blueprint']['input']['remotes']['selector']['entity'][0]['filter']. Got None
extra keys not allowed @ data['blueprint']['input']['remotes']['selector']['entity'][0]['multiple']. Got None
I am new to HA and the syntax is hard for me to get used to. I am simply trying to make my existing/working blueprint support multiple input dimmer switches.
I would be very thankful if you could support me there!
OK, that’s a device selector. For some reason unknown to me or mankind, the syntax is different for device than entity. This is probably why I seldom if ever personally use devices…
So event. The only place you have event is in the trigger. It is likely that the trigger can only handle 1, not a list. I’ve seen that in other places.
You may have to find another way of triggering.
Perhaps trigger more broadly (like any zha event or any zha event with that manufacturer), and then in conditions narrow it down to the ones called out in the input.
Where trigger and trigger variables can only use limited templates, conditions you have the whole template library so you can break up the list of devices and find a match to continue.
It’s more work but you can still get there.
If you need more help than that, I would pop into the configuration topic with a tag of templates and ask the question there of how to trigger monitoring multiple devices using the list in conditions. I’m sure one of the template guru’s can help you out. Not my expertise I’m afraid.
@Alwinator
If you select multiple devices in the selector, the result will be a list of devices.
The trigger will check for this full list, and thus will never trigger as the event will only have one device id in it
You can use a condition to check if the device id is in the list used in the selector