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

Weekday Condition Challenge

$
0
0

I finally got the routine to work to gradually increase the lamps in the bedroom starting at 6:15AM, but I’d like to avoid waking up at that time during the weekend.

Where did I go wrong when I added the weekday condition?

  action:
    - service: light.turn_on
      data:
        entity_id: light.graham_lamp
        brightness: 5
    - repeat:
        sequence:
          - service: light.turn_on
            data:
              entity_id: light.graham_lamp
              brightness: "{{ state_attr('light.graham_lamp', 'brightness') | int + 10}}"
          - delay: "00:00:03"
        until:
          condition: and
          conditions:
            - condition: time
              weekday:
                - mon
                - tue
                - wed
                - thu
                - fri
            - condition: template
              value_template: "{{ state_attr('light.graham_lamp', 'brightness') | int >= 254 }}"
            - condition: state
              entity_id: light.graham_lamp
              state: "off"

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106320

Trending Articles



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