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

Negate values in YAML

$
0
0

@broken.pipe wrote:

I would like to use the output of the weekday sensor on the weekend. so react to it if the value is false. how can i use the state so that the automation works on the weekend?

Best regards!

- alias: Bathroom holidays
  trigger:
    platform: time
    at: "07:00:00"
  condition:
    condition: state
    entity_id: 'binary_sensor.workday_sensor'
    state: 'on'
  action:
    - service: climate.set_temperature
      data:
        entity_id: climate.bathroom 
        temperature: 25

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles



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