Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: PS1 NFC Webhook
- description: ""
- triggers:
- - alias: Webhook PS1 Bucket Emptied
- allowed_methods:
- - POST
- - PUT
- local_only: true
- id: PS1-bucket-emptied
- trigger: webhook
- webhook_id: PS1BucketHasBeenEmptied
- conditions: []
- actions:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - PS1-bucket-emptied
- sequence:
- - action: timer.cancel
- metadata: {}
- target:
- entity_id:
- - timer.PS1_bucket_timer
- - timer.PS1_runtime_timer
- data: {}
- - action: tts.speak
- metadata: {}
- target:
- entity_id: tts.piper
- data:
- cache: true
- media_player_entity_id: media_player.weem_office_tablet
- message: Aircon Bucket timer has been reset
- alias: Piper TTS Bucket Empty
- continue_on_error: true
- - delay:
- hours: 0
- minutes: 0
- seconds: 5
- milliseconds: 0
- - if:
- - condition: state
- entity_id: climate.midea_portasplit_12000btu
- state:
- - cool
- then:
- - action: notify.ntfy_lowpri
- data:
- title: "{{ now().strftime('%Y/%m/%d @ %H:%M') }}"
- message: PS1 Bucket emptied and timers reset
- continue_on_error: true
- - action: timer.start
- metadata: {}
- target:
- entity_id:
- - timer.PS1_bucket_timer
- - timer.PS1_runtime_timer
- data: {}
- else:
- - action: notify.ntfy_general
- data:
- message: PS1 timers Cancelled
- title: "{{ now().strftime('%Y/%m/%d @ %H:%M') }}"
- continue_on_error: true
- - action: timer.cancel
- metadata: {}
- target:
- entity_id:
- - timer.PS1_bucket_timer
- - timer.PS1_runtime_timer
- data: {}
- mode: parallel
- max: 10
Advertisement
Add Comment
Please, Sign In to add comment