Learning Home Assistant - #352
eralbright
started this conversation in
General
Replies: 1 comment 2 replies
-
that's cool - but why are you watering your foundation? :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I've been doing Home Automation since the 90's but just moving to Home Assistant. I have used your smart irrigation for a lot of learning and having fun with it. Thanks... This is (not your intent for the program) what I put together and it works. Again it was not your intent of the program but my learning by using it.
`alias: Foundation Watering
description: >-
Drip watering my foundation whenever the need for water is > 0.25 inches and
stop when the need is < 0.1 inches. Water in 5 minute intervals with a 3
minute delay between intervals. Still to implement: check for rain and don't
run if raining.
trigger:
entity_id:
from: "off"
to: "on"
condition:
state: "on"
entity_id: calendar.watering_schedule_foundation
value_template: >-
{{state_attr('sensor.smart_irrigation_zone_7_foundation','bucket') <
-0.25}}
entity_id: sensor.friscoweather_temperature
above: 48
action:
data: {}
while:
- condition: template
value_template: >-
{{state_attr('sensor.smart_irrigation_zone_7_foundation','bucket') |
float < -0.1 }}
sequence:
- service: smart_irrigation.set_bucket
data:
new_bucket_value: >-
{{state_attr('sensor.smart_irrigation_zone_7_foundation','bucket')
| float + 0.025 }}
target:
entity_id: sensor.smart_irrigation_zone_7_foundation
- type: turn_on
device_id: ef8bd15cd34ed99ac0d4f982f397e4a0
entity_id: 6110ebb0000cd9fb5d64cbbedc01e648
domain: switch
- delay: "00:05:00"
- type: turn_off
device_id: ef8bd15cd34ed99ac0d4f982f397e4a0
entity_id: 6110ebb0000cd9fb5d64cbbedc01e648
domain: switch
- delay: "00:03:00"
- if:
- condition: state
entity_id: calendar.watering_schedule_foundation
state: "off"
then:
- stop: Outside approved watering times
mode: single`
Beta Was this translation helpful? Give feedback.
All reactions