I have been trying to use the Zone Selector, but it appears to me to be of little use. It produces a list of the Zones found, but when trying to apply the zone collected into a zone trigger in a Blueprint, there is an error.
This is likely a ‘feature’ of the limited template, but entities and other things work in triggers with !input or trigger variables, why not zones?
Full Blueprint and error log can be found here,
but in summary this is what I’ve found.
Plugging the !input value of the zone into the zone trigger drops an error. So does using a trigger_variable to convert the !input value to a variable and plugging the variable into the zone line. It appears the only thing the zone line on the zone trigger will accept is a string representing the text of the zone you want to refer to. Not the zone entity and not a template of the string, only the string.
Please point me in a direction or correct me if I’m wrong…
I have tried setting it as a trigger variable, and it wouldn’t read it. I tried as a straight-up !input, that said this is not string.
Blueprint 'Person Alert Honitor - 2023-02-22' generated invalid automation with inputs .>. Entity ID {{ trigg_1 }} is an invalid entity ID for dictionary value @ data['zone']. Got None
Blueprint 'Person Alert Honitor - 2023-02-22' generated invalid automation with inputs .>. value should be a string for dictionary value @ data['zone']. Got None
trigger_variables:
trigg_1: !input zone2monitor
trigger:
- platform: zone
id: enter_trigger
entity_id: !input people2monitor
zone: '{{ trigg_1 }}'
event: enter
trigger_variables:
trigg_1: !input zone2monitor
trigger:
- platform: zone
id: enter_trigger
entity_id: !input people2monitor
zone: !input zone2monitor
event: enter
Keep in mind this is a Blueprint I want to share with others, so creating a companion helper is not an ideal option. It just seems to me that there should be a way to do this. Don’t thibk it would help anyway.