@Stresskind wrote:
Hi,
I like the areas that are available to group devices. I have multiple windows sensors in my system via deconz. For a nice view - in the frontend - they are all labeled as window.
There are multiple automations, that are working with these sensors e.g. an alarm system. I would like to access the area_id of my objects to get better notifications via telegram_bot.
Without the area_id, I have do make a lot of checks wich sensor calls the automation.
- alias: Window Warning description: '' trigger: - platform: device domain: binary_sensor entity_id: binary_sensor.livingroom_window type: opened for: hours: 0 minutes: 10 seconds: 0 - platform: device domain: binary_sensor entity_id: binary_sensor.kitchen_window type: opened for: hours: 0 minutes: 10 seconds: 0 - platform: device domain: binary_sensor entity_id: binary_sensor.bedroom_window type: opened for: hours: 0 minutes: 10 seconds: 0 condition: - condition: zone entity_id: person.family zone: zone.home action: - data_template: message: Close {{ trigger.to_state.attributes.device_class }} (*{{ trigger.to_state.attributes.friendly_name }}*) that was enough fresh air! title: '*Door & Window State*' service: notify.family
Thanks for a helpful advice.
Stresskind
Posts: 1
Participants: 1