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

Automation Sun Offset Error

$
0
0

@fountain27 wrote:

I am trying to add an offset to a existing automation. The YAML code is correct, but I get a notification in HA “invalid config”.

Here is the code:

  trigger:
    platform: state
    entity_id:  device_tracker.android
    from: 'not_home'
    to: 'home'
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
    offset: "-00:45:00"
  action:
  - service: switch.turn_on
    entity_id:
      - switch.honeywell_unknown_type_4952_id_3036_switch
      - switch.0220036060019472dce9
      - switch.0220036060019472da94

Thank you for any suggestions.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95541

Trending Articles



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