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

Automation help (run once?)

$
0
0

@Makis wrote:

Hi
I have the following automation which close the tent when is windy.
Since it is cover but it doesn’t have a state (on-off) I am wondering if there is a way to run only once (if the wind speed is more that 40 (km/h). I would like the automation to run again after someone opens the tent 5-6 hours or a day later.
Can this be done somehow?

  • I haven’t use any input boolean logic before so it feels right now difficult to implement.
#Tent Tent_windy        
- id: Tent_windyy
  alias: Tent windy
  trigger:
    platform: numeric_state
    entity_id: sensor.wind_speed_automation
    above: 40
  action:
    - service: cover.close_cover
      entity_id: cover.50758014840d8e918614

Posts: 12

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95445

Trending Articles