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

Automation using the sun not working

$
0
0

@benzo wrote:

Hello,
I tried to automate a scene to turn on 45 minutes before the sunset, like the example in the offical link https://www.home-assistant.io/cookbook/automation_sun/ but it didn’t work.
Before testing sunset automation i was using a simple time trigger event that worked like a charm. Now in the log i see many errors but i don’t know why happening only with sunset automation.

This is the simple automation:

  - alias: 'Accendi Luci Salotto'
    trigger:
      - platform: sun
        event: sunset
        offset: "-00:45:00"
    action:
      service: scene.turn_on
      entity_id: scene.Accendi_Luci_Salotto
      data:
        transition: 900
  - alias: 'Spegni Luci Salotto'
    trigger:
      - platform: time
        at: '00:30:00'
    action:
      service: scene.turn_on
      entity_id: scene.Spegni_Luci_Salotto         

The log:

Error while executing automation automation.accendi_luci_salotto. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘transition’]

components/hue/sensor_base.py(ERROR)
Unable to reach bridge 192.xxx.xxx.xxx ()

I know that “extra keys not allowed @ data[‘transition’]” is the error but it can stop the automation entirely???

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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