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

Automation question.. simple I hope

$
0
0

I have 2 simple automations that are not working so I figured I have to be missing something simple…
Any input or help would be appreciated very much!! Both are about the same so I’ll just post one to hopefully get some input.
NOW each device works fine on its own… turns on or off, reports motion etc… but in this automation the light is not being triggered…

- alias: 11a - Turn on Hall lights
  id: Turn on Hall lights
  triggers:
    - trigger: state
      entity_id: binary_sensor.hall_light_on_off_motion
      from: "off"
      to: "on"

  condition:
    condition: and
    conditions:
      #- condition: numeric_state
      #  entity_id: sensor.lr_window_light_level
      #  below: 500.00
      - condition: time
        before: "23:00:00"
        after: "16:00:00"
  actions:
    - action: light.turn_on
      entity_id: light.hallway

- alias: 11b - Turn off Hall lights
  id: Turn off Hall lights
  triggers:
    - trigger: state
      entity_id: binary_sensor.hall_light_on_off_motion
      from: "on"
      to: "off"
      for: "00:00:30"
  actions:
    - action: light.turn_off
      entity_id: light.hallway

I’m probably overlooking something simple but I cannot for the life of figure out why it’s not working…

Thank you!

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 105679

Trending Articles



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