Advertisement
Hoekeren75

Adviserring om åbne vinduer og døre

Feb 15th, 2022
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.58 KB | None | 0 0
  1. alias: Åbne vinduer og døre
  2. sequence:
  3.   - service: notify.mobile_app_oneplus_cs
  4.     data:
  5.       title: Åbne vinduer/døre
  6.       message: >-
  7.         "{{ states.binary_sensor | selectattr('state', 'eq', 'on') |
  8.        selectattr('attributes.device_class', 'eq', 'window') |
  9.        map(attribute='attributes.friendly_name') | list | join(', ') }},{{
  10.        states.binary_sensor | selectattr('state', 'eq', 'on') |
  11.        selectattr('attributes.device_class', 'eq', 'door') |
  12.        map(attribute='attributes.friendly_name') | list | join(', ') }}"
  13. mode: single
  14. icon: mdi:door-open
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement