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

Automation to control outlet based on time, and wind

$
0
0

I’m trying to create and automation to control my fountain outlet. i want the outlet to come on at set times, then go on or off during those times based on wind speed. thank you! Ive had this working once before, but due to a storm i lost the data, now i am about to literally pull my last hair out lol.

alias: New automation?
description: ""
triggers:
  - trigger: time
    at: "08:00:00"
    id: timeon
  - trigger: time
    at: "20:30:00"
    id: timeoff
  - trigger: numeric_state
    entity_id:
      - sensor.pirateweather_wind_gust
      - sensor.pirateweather_wind_speed
    above: 5
    id: windoff
  - trigger: numeric_state
    entity_id:
      - sensor.pirateweather_wind_gust
      - sensor.pirateweather_wind_speed
    below: 4
    id: windon
conditions:
  - condition: time
    after: "07:59:50"
    before: "20:30:00"
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - timeon
              - windon
        sequence:
          - action: switch.turn_on
            metadata: {}
            data: {}
            target:
              device_id: 201c051cb0856eabdbe8f0625405cdf5
      - conditions:
          - condition: trigger
            id:
              - timeoff
              - windoff
        sequence:
          - action: switch.turn_off
            metadata: {}
            data: {}
            target:
              device_id: 201c051cb0856eabdbe8f0625405cdf5
mode: single

ill be forever in debt to whomever helps for my sanity! :sweat_smile:

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106634

Trending Articles



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