Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Advisering_mopper - Mangler vand
- description: >-
- Når Mopper mangler vand, adviseres CS og AB med en NOTIFY og en TTS, hvis de
- er hjemme. Hvis man er UDE får man først adviseringen 20 efter man er kommet
- hjem, hvis Mopper stadigt mangler vand.
- trigger:
- - platform: state
- entity_id:
- - person.annemette
- to: home
- for:
- hours: 0
- minutes: 20
- seconds: 0
- id: Annemette kommer hjem
- - platform: state
- entity_id:
- - person.christian
- to: home
- for:
- hours: 0
- minutes: 20
- seconds: 0
- id: Christian kommer hjem
- - platform: state
- entity_id:
- - sensor.mopper_error
- to: water_tank-dry
- id: Mopper mangler vand
- condition: []
- action:
- - choose:
- - conditions:
- - condition: and
- conditions:
- - condition: trigger
- id: Christian kommer hjem
- - condition: state
- entity_id: sensor.mopper_error
- state: water_tank_dry
- sequence:
- - service: notify.mobile_app_oneplus_cs
- data:
- message: Mopper skal have skiftet vand
- - conditions:
- - condition: and
- conditions:
- - condition: trigger
- id: Annemette kommer hjem
- - condition: state
- entity_id: sensor.mopper_error
- state: water_tank_dry
- sequence:
- - service: notify.mobile_app_annemette_skallerup_borgesens_iphone
- data:
- message: Mopper skal have skiftet vand
- - conditions:
- - condition: trigger
- id: Mopper mangler vand
- sequence:
- - if:
- - condition: zone
- entity_id: person.annemette
- zone: zone.home
- then:
- - service: notify.mobile_app_annemette_skallerup_borgesens_iphone
- data:
- message: Mopper skal have skiftet vand
- - if:
- - condition: zone
- entity_id: person.christian
- zone: zone.home
- then:
- - service: notify.mobile_app_oneplus_cs
- data:
- message: Mopper skal have skiftet vand
- - service: tts.cloud_say
- data:
- cache: true
- entity_id: media_player.kokken
- message: Mopper skal have skiftet vandet
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement