# I am having trouble specifying the attribute to get the area of the device that triggered an automation. This is what I have now message: "Smoke detected in {{ state_attr(trigger.to_state.entity_id, 'area')"