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

Stop automation if another has already run that day

$
0
0

@gruffdris wrote:

Hi

I seem to be getting confused with the automation conditions. I have a scripts setup that get called 2 hours before me or the girlfriend have work. I still tend to get up with her when i’m on a later start so i don’t need mine to run. How do i set the condition so it doesn’t trigger for that day?

- alias: 'time to get up gruff'
  trigger:
    platform: state
    entity_id: sensor.my_event_offset
    to: 'on'
  condition:
    condition: state
    entity_id: person.gruffdris
    state: 'home'
  action:
    service: script.turn_on
    entity_id: script.im_awake

- alias: 'time to get up rhiddz'
  trigger:
    platform: state
    entity_id: sensor.rhiddz_event_offset
    to: 'on'
  condition:
    condition: state
    entity_id: person.rhiddz
    state: 'home'
  action:
    service: script.turn_on
    entity_id: script.rhiddz_awake

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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