Hi
We have an automation that monitors the last trigger of a binary_sensor.
The sensor’s are assigned to an area and I was wondering if there’s a way to write a template so the area of the sensor is returned rather than the sensor’s attributes?
This is so that we can use the automation to track last motion and write the last movement into an input_text helper. The friendly name is too long for other automations it’ll be used with.