weeemrcb

PS1 Condensate Bucket

Aug 16th, 2026 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.84 KB | Source Code | 0 0
  1. alias: PS1 Condensate Bucket
  2. description: ""
  3. triggers:
  4.   - trigger: state
  5.     entity_id:
  6.      - climate.midea_portasplit_12000btu
  7.     from:
  8.      - "off"
  9.     id: midea-on
  10.     to:
  11.      - cool
  12.   - trigger: state
  13.     entity_id:
  14.      - climate.midea_portasplit_12000btu
  15.     id: midea-off
  16.     from:
  17.      - cool
  18.   - trigger: timer.finished
  19.     target:
  20.       entity_id: timer.PS1_runtime_timer
  21.     options:
  22.       for: "00:00:00"
  23.     id: timer-runtime-end
  24.   - trigger: timer.finished
  25.     target:
  26.       entity_id: timer.PS1_bucket_timer
  27.     options:
  28.       for: "00:00:00"
  29.     id: timer-bucket-end
  30. conditions: []
  31. actions:
  32.   - alias: Midea ON
  33.     if:
  34.       - condition: trigger
  35.         id:
  36.          - midea-on
  37.     then:
  38.       - action: timer.start
  39.         metadata: {}
  40.         target:
  41.           entity_id:
  42.            - timer.PS1_runtime_timer
  43.             - timer.PS1_bucket_timer
  44.         data: {}
  45.   - alias: Midea OFF
  46.     if:
  47.       - condition: trigger
  48.         id:
  49.          - midea-off
  50.     then:
  51.       - action: timer.pause
  52.         metadata: {}
  53.         target:
  54.           entity_id:
  55.            - timer.PS1_bucket_timer
  56.             - timer.PS1_runtime_timer
  57.         data: {}
  58.   - alias: Timer Bucket Empty End
  59.     if:
  60.       - condition: trigger
  61.         id:
  62.          - timer-bucket-end
  63.     then:
  64.       - parallel:
  65.           - action: notify.ntfy_general
  66.             data:
  67.               message: PS1 Bucket Need to be emptied.
  68.               title: "{{ now().strftime('%Y/%m/%d @ %H:%M') }}"
  69.           - parallel:
  70.               - action: tts.speak
  71.                 metadata: {}
  72.                 target:
  73.                   entity_id: tts.piper
  74.                 data:
  75.                   cache: true
  76.                   media_player_entity_id: media_player.weem_office_tablet
  77.                   message: Aircon bucket needs to be emptied
  78.               - action: tts.speak
  79.                 metadata: {}
  80.                 target:
  81.                   entity_id: tts.piper
  82.                 data:
  83.                   cache: true
  84.                   media_player_entity_id: media_player.weem_kitchen_tablet
  85.                   message: Aircon bucket needs to be emptied
  86.             continue_on_error: true
  87.   - alias: Timer Runtime End
  88.     if:
  89.       - condition: trigger
  90.         id:
  91.          - timer-runtime-end
  92.     then:
  93.       - action: input_boolean.turn_on
  94.         metadata: {}
  95.         target:
  96.           entity_id: input_boolean.PS1_venting
  97.         data: {}
  98.       - parallel:
  99.           - data:
  100.               message: PS1 Bucket hasn't been emptied. Starting Fan Only Mode
  101.               title: "{{ now().strftime('%Y/%m/%d @ %H:%M') }}"
  102.             action: notify.ntfy_sos
  103.             continue_on_error: true
  104.           - action: script.tts_PS1_bucket_not_emptied_in_18hrs
  105.             metadata: {}
  106.             data: {}
  107. mode: queued
  108. max: 10
  109.  
Advertisement
Add Comment
Please, Sign In to add comment