Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Custom flexible Notification
- sequence:
- - alias: Xiaomi 12X (Florian)
- if:
- - condition: or
- conditions:
- - alias: Switch Notification 'On' and NOT at Work
- condition: template
- value_template: >-
- {{ is_state('input_boolean.notify_mobile_app_xiaomi_12x', 'on')
- and states('person.florian') != 'Trivit AG' }}
- - condition: template
- value_template: "{{ data.channel == 'Alarm' or message == 'clear_notification' }}"
- alias: channel == 'Alarm' or Message == 'clear_notification'
- then:
- - service: notify.mobile_app_xiaomi_12x
- data:
- title: "{{ title }}"
- message: "{{ message }}"
- data: "{{ data }}"
- enabled: true
- - alias: Xiaomi 13 (Denise)
- if:
- - condition: or
- conditions:
- - alias: Switch Notification 'On' and NOT at Work
- condition: template
- value_template: >-
- {{ is_state('input_boolean.notify_mobile_app_xiaomi_13', 'on') and
- states('person.denise') != 'MTU FN Werk1' }}
- - condition: template
- value_template: "{{ data.channel == 'Alarm' or message == 'clear_notification' }}"
- alias: channel == 'Alarm' or Message == 'clear_notification'
- then:
- - service: notify.mobile_app_xiaomi_13
- data:
- title: "{{ title }}"
- message: "{{ message }}"
- data: "{{ data }}"
- enabled: true
- - alias: Sony Xperia Z Tablet (Florian)
- if:
- - condition: state
- entity_id: input_boolean.notify_mobile_app_sgp321
- state: "on"
- - condition: template
- value_template: "{{ states('device_tracker.sgp321') == 'home' }}"
- alias: is 'Home'
- then:
- - service: notify.mobile_app_sgp321
- data:
- title: "{{ title }}"
- message: "{{ message }}"
- data: "{{ data }}"
- enabled: true
- mode: single
- icon: mdi:message-badge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement