Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trigger:
- - platform: event
- event_type: state_changed
- condition:
- - condition: template
- value_template: '{{ "_battery_level" in trigger.event.data.entity_id }}'
- - condition: template
- value_template: '{{ trigger.event.data.new_state.state | int < 10 }}'
- action:
- - service: notify.mobile_app_sm_n960f
- data_template:
- title: Wymiana baterii
- message: "Czas na zmianę baterii w {{ trigger.event.data.new_state.attributes.friendly_name }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement