I wrote this blueprint and it works perfectly other than that the irrigation lasts only 5 minutes, not what I enter as the length. I wonder if I did something wrong or if it's something else. It is a b-hyve hub, in case that makes a difference. Thanks for any help!
name: Watering Blueprint
description: Turn on watering based on time
domain: automation
input:
time_start:
name: Time to start
description: The time the watering will start
selector:
time:
weekday:
name: Day of the week to start watering
default: [mon, tue, wed, thu, fri, sat, sun]
selector:
select:
options:
- label: Monday
value: mon
- label: Tuesday
value: tue
- label: Wednesday
value: wed
- label: Thursday
value: thu
- label: Friday
value: fri
- label: Saturday
value: sat
- label: Sunday
value: sun
custom_value: false
multiple: true
target:
name: Section to water
description: Select the section that will be watered
selector:
entity:
device_class: switch
minutes:
name: Minutes
description: Amount of Minutes to be watering
selector:
number:
mode: slider
min: 0
max: 180
unit_of_measurement: minutes
mode: single
triggers:
- platform: time
at: !input time_start
conditions:
- condition: time
weekday: !input weekday
- condition: state
entity_id: input_boolean.pause_watering
state: "off"
actions:
- service: switch.turn_on
entity_id: !input target
- delay:
minutes: !input minutes
- service: switch.turn_off
entity_id: !input target