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

Timed automation with presense detection not triggering

$
0
0

@myxor wrote:

Hello community,
this is my first post here so please be kind to me :slightly_smiling_face:

I configured an automation which should turn on the kitchen light in the morning if at least one of two devices are at home and the sun is not yet up.
The device trackers are working and manually switching the light on and off is working as well but this automation is never triggering.
The sun-up change is happened are around 8:15 here right now so this should be okay, too.

Can you help me finding out what is wrong here?

- id: '1579591309996'
  alias: Turn light on in the morning if someone is at home
  description: ''
  trigger:
  - at: 06:45:00
    platform: time
  condition:
  - condition: device
    device_id: fd03bb[...]da
    domain: device_tracker
    entity_id: device_tracker.ane_lx1
    type: is_home
  - condition: or
    conditions:
    - condition: device
      device_id: caa8fa[...]b5
      domain: device_tracker
      entity_id: device_tracker.oneplus_a5000
      type: is_home
  - condition: and
    conditions:
    - before: sunrise
      condition: sun
  action:
  - device_id: 4bfb4[...]1e
    domain: light
    entity_id: light.kitchen
    type: turn_on

(i shortened the device_ids in this code, in real they are longer of course :slight_smile: )

Thank you in advance

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles



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