bexem

Home Assistant Automation - Reminders: Clothes to dry

Aug 21st, 2025 (edited)
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.39 KB | Software | 0 0
  1. alias: "Reminders: Clothes to dry"
  2. description: ""
  3. triggers:
  4.   - alias: Time to gather the clothes
  5.     trigger: template
  6.     value_template: >-
  7.       {{ now().timestamp() == (as_timestamp(state_attr('sun.sun',
  8.       'next_setting')) - 1800) | int }}
  9.     id: dusk
  10.   - trigger: time
  11.     at: "00:00:00"
  12.     id: resolved
  13.   - trigger: numeric_state
  14.     entity_id:
  15.      - input_number.weather_next_hour_precipitation_probability
  16.     above: 74
  17.     id: high_rain_probability
  18. conditions:
  19.   - condition: state
  20.     entity_id: input_boolean.house_dumb
  21.     state: "off"
  22. actions:
  23.   - alias: Clothes
  24.     choose:
  25.       - conditions:
  26.           - condition: trigger
  27.             id:
  28.              - dusk
  29.               - high_rain_probability
  30.           - condition: state
  31.             entity_id: binary_sensor.someone_asleep
  32.             state: "off"
  33.         sequence:
  34.           - alias: AI Vision
  35.             if:
  36.               - condition: state
  37.                 entity_id: input_boolean.ai_vision
  38.                 state: "on"
  39.             then:
  40.               - metadata: {}
  41.                 action: llmvision.image_analyzer
  42.                 data:
  43.                   provider: "{{states('input_text.ai_vision_llm_provider')}}"
  44.                   max_tokens: "{{states('input_number.ai_vision_max_tokens') | round }}"
  45.                   include_filename: false
  46.                   image_entity:
  47.                    - camera.garden_fluent
  48.                   target_width: >-
  49.                     {{states('input_number.ai_vision_image_resolution_width') |
  50.                    round }}
  51.                   message: >-
  52.                     Are there any clothes hang to dry in the garden? Answer Yes
  53.                     or no.
  54.                   model: "{{states('input_text.ai_vision_model_to_use_for_cctv')}}"
  55.                 response_variable: final_response
  56.               - choose:
  57.                   - conditions:
  58.                       - condition: template
  59.                         value_template: "{{ 'yes' in final_response | lower }}"
  60.                       - condition: trigger
  61.                         id:
  62.                          - dusk
  63.                     sequence:
  64.                       - action: todo.update_item
  65.                         metadata: {}
  66.                         data:
  67.                           item: Clothes
  68.                           status: needs_action
  69.                           description: >-
  70.                             It will be sunset soon, time to get the clothes
  71.                             drying in the garden.
  72.                         target:
  73.                           entity_id: todo.ai_feed
  74.                     alias: Yes!
  75.                   - conditions:
  76.                       - condition: template
  77.                         value_template: "{{ 'yes' in final_response | lower }}"
  78.                       - condition: trigger
  79.                         id:
  80.                          - high_rain_probability
  81.                     sequence:
  82.                       - action: todo.update_item
  83.                         metadata: {}
  84.                         data:
  85.                           item: Clothes
  86.                           status: needs_action
  87.                           description: >-
  88.                             High chance of rain in the next hour, time to get
  89.                             the clothes drying in the garden!
  90.                         target:
  91.                           entity_id: todo.ai_feed
  92.                     alias: Yes! and about to rain
  93.                 default:
  94.                   - action: todo.update_item
  95.                     metadata: {}
  96.                     data:
  97.                       item: Clothes
  98.                       status: completed
  99.                       description: >-
  100.                         It will be sunset soon, time to get the clothes drying
  101.                         in the garden.
  102.                     target:
  103.                       entity_id: todo.ai_feed
  104.         alias: Remind
  105.       - conditions:
  106.           - condition: trigger
  107.             id:
  108.              - resolved
  109.         sequence:
  110.           - action: todo.update_item
  111.             metadata: {}
  112.             data:
  113.               item: Clothes
  114.               status: completed
  115.               description: >-
  116.                 It will be sunset soon, time to get the clothes drying in the
  117.                 garden.
  118.             target:
  119.               entity_id: todo.ai_feed
  120.         alias: Resolved
  121. mode: single
  122.  
Advertisement
Add Comment
Please, Sign In to add comment