Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: "Reminders: Clothes to dry"
- description: ""
- triggers:
- - alias: Time to gather the clothes
- trigger: template
- value_template: >-
- {{ now().timestamp() == (as_timestamp(state_attr('sun.sun',
- 'next_setting')) - 1800) | int }}
- id: dusk
- - trigger: time
- at: "00:00:00"
- id: resolved
- - trigger: numeric_state
- entity_id:
- - input_number.weather_next_hour_precipitation_probability
- above: 74
- id: high_rain_probability
- conditions:
- - condition: state
- entity_id: input_boolean.house_dumb
- state: "off"
- actions:
- - alias: Clothes
- choose:
- - conditions:
- - condition: trigger
- id:
- - dusk
- - high_rain_probability
- - condition: state
- entity_id: binary_sensor.someone_asleep
- state: "off"
- sequence:
- - alias: AI Vision
- if:
- - condition: state
- entity_id: input_boolean.ai_vision
- state: "on"
- then:
- - metadata: {}
- action: llmvision.image_analyzer
- data:
- provider: "{{states('input_text.ai_vision_llm_provider')}}"
- max_tokens: "{{states('input_number.ai_vision_max_tokens') | round }}"
- include_filename: false
- image_entity:
- - camera.garden_fluent
- target_width: >-
- {{states('input_number.ai_vision_image_resolution_width') |
- round }}
- message: >-
- Are there any clothes hang to dry in the garden? Answer Yes
- or no.
- model: "{{states('input_text.ai_vision_model_to_use_for_cctv')}}"
- response_variable: final_response
- - choose:
- - conditions:
- - condition: template
- value_template: "{{ 'yes' in final_response | lower }}"
- - condition: trigger
- id:
- - dusk
- sequence:
- - action: todo.update_item
- metadata: {}
- data:
- item: Clothes
- status: needs_action
- description: >-
- It will be sunset soon, time to get the clothes
- drying in the garden.
- target:
- entity_id: todo.ai_feed
- alias: Yes!
- - conditions:
- - condition: template
- value_template: "{{ 'yes' in final_response | lower }}"
- - condition: trigger
- id:
- - high_rain_probability
- sequence:
- - action: todo.update_item
- metadata: {}
- data:
- item: Clothes
- status: needs_action
- description: >-
- High chance of rain in the next hour, time to get
- the clothes drying in the garden!
- target:
- entity_id: todo.ai_feed
- alias: Yes! and about to rain
- default:
- - action: todo.update_item
- metadata: {}
- data:
- item: Clothes
- status: completed
- description: >-
- It will be sunset soon, time to get the clothes drying
- in the garden.
- target:
- entity_id: todo.ai_feed
- alias: Remind
- - conditions:
- - condition: trigger
- id:
- - resolved
- sequence:
- - action: todo.update_item
- metadata: {}
- data:
- item: Clothes
- status: completed
- description: >-
- It will be sunset soon, time to get the clothes drying in the
- garden.
- target:
- entity_id: todo.ai_feed
- alias: Resolved
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment