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

Sanity check for a time condition

$
0
0

@FutureTense wrote:

Does the following condition ensure that whatever automation it is attached to will only run if binary_sensor.allow_automation is true and the time is between 5am and midnight?

  condition:
    - condition: state
      entity_id: 'binary_sensor.allow_automation'
      state: 'on'
    - condition: time
      after: '05:00:00'
      before: '00:00:00'

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles