So I have an automation that takes the area_id of the trigger:
{area_id(trigger.entity_id)}}
And fires that
What I’d like to do is use this same area_id and use it as a condition, so the automation only fires if the lights are off.
Something like…
{{is_state('light.area_id(trigger.entity_id)', 'on')}}
But it isn’t translating that area_id(trigger.entity_id) to the area_id and interpolating it into the entity name.
Is there any way to do this?
Thanks in advance!