Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: 1. test advisering ved åbne vinduer
- description: ''
- trigger:
- - platform: state
- entity_id: >-
- {{ states.binary_sensor | selectattr('state', 'eq', 'on') |
- selectattr('attributes.device_class', 'eq', 'window') |
- map(attribute='entity_id') | list | count > 0}}
- to: 'True'
- condition: []
- action:
- - service: notify.mobile_app_cs_mobil
- data:
- message: test
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement