Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 108092

Please check my work. (Turning off a pump and filling a birdbath, then turning back on)

$
0
0

I have a birdbath that evaporates pretty quickly. I have a water sensor that can tell me whether it is full or not and a sprinkler valve that can fill it back up. There is an automation that does a pretty good job keeping it full but occasionally something messes up and it dries up.

When that happens I want to turn off the pump and turn on the water supply. The sprinkler routine runs for two minutes which should be enough to top if off unless it’s really dry. So if it doesn’t show wet run it again.

Once it’s senses wet I want to turn back on the fountain.

the following is the YAML

alias: Bird Bath Protect the pump from running dry
description: ""
triggers:
  - type: not_moist
    device_id: a5b86b0ac67fda7a3fa4b8eb57aa6a54
    entity_id: 7972bda06692b86630acf94c7fd7264c
    domain: binary_sensor
    trigger: device
    for:
      hours: 0
      minutes: 10
      seconds: 0
conditions: []
actions:
  - repeat:
      sequence:
        - type: turn_off
          device_id: 63b94a8d2f2112b120c9797099717b29
          entity_id: f4048310f1a82ea59908659e56323938
          domain: light
        - type: turn_on
          device_id: 0b67b9fe077cf5d4c0b963519ad27072
          entity_id: a6acff894b785e697d467a0c8b151708
          domain: switch
        - delay:
            hours: 0
            minutes: 2
            seconds: 15
            milliseconds: 0
      until:
        - condition: state
          entity_id: binary_sensor.bird_bath_water_sensor
          state: "on"
  - if:
      - condition: state
        entity_id: binary_sensor.bird_bath_water_sensor
        state: "on"
    then:
      - type: turn_on
        device_id: 63b94a8d2f2112b120c9797099717b29
        entity_id: f4048310f1a82ea59908659e56323938
        domain: light
mode: single

Thank you

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 108092

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>