Yes we just opened some beers to celebrate this.
Will change the condition part.
Yes we just opened some beers to celebrate this.
Will change the condition part.
ok, so something is wrong with the scene, can you manually turn the scene on to make sure that it works?
Is it an idea to also set the sun rule in the open part? Otherwise the lights will turned on during the day.
- id: '1566418818385'
alias: GoGoGate open licht aan
trigger:
platform: state
entity_id: cover.hek
from: "closed"
to: "open"
condition:
condition: and
conditions:
- condition: time
after: '00:00:00'
- condition: state
entity_id: sun.sun
state: 'below_horizon’
action:
- service: scene.turn_on
entity_id: scene.garden_lights_bright
- service: switch.turn_on
entity_id: switch.qubino_goap_zmnhbdx_flush_2_relays_switch
- id: '1566423130786'
alias: GoGoGate dicht licht uit
trigger:
platform: state
entity_id: cover.hek
from: "open"
to: "closed"
condition:
condition: and
conditions:
- condition: time
after: '00:00:00'
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.garden_lights_dim
- delay:
minutes: 1
- service: switch.turn_off
entity_id: switch.qubino_goap_zmnhbdx_flush_2_relays_switch
No, because for the location that you are in the Sun will always be down at Midnight, and the code you just posted, I see an issue:
state: 'below_horizon’
Wrong quote, should be:
state: 'below_horizon'
That was the mistake I spotted earlier that I thought you had put in deliberately to get @RemcovanKuilenburg to config check and correct himself ; -))))) only : - ((((( now …
Correct but what will it do when the gate opens after sun rise. Will it trigger the lights then? This because we tell this for the closing part and not for the opening part.
What I want is lights on and off during sun down. During winter times it is still dark in the Netherlands when we drive off to work. So need the lights. But in Summertime the sun is up when we leave the house.
HA ha haha AH, that is funny.
I’m going to bed CU
That is why I had you change that condition. That condition say do only between the hours of 12am and 6 am
Sorry, had two blond ladies complaining for a last walk.
Yes we can do that. But like said. Winter time still dark at 7 am and summer time light at 5 am. So that is why I wanted to add sun down part to make this work.
Ah, I see, go for it, add the sun condition and take out the before condition for the time.
Changed it but now the error
Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block collection
in “/home/homeassistant/.homeassistant/automations.yaml”, line 1, column 1
expected , but found ‘’
in “/home/homeassistant/.homeassistant/automations.yaml”, line 8, column 2
Lets see the code
- id: '1566418818385'
alias: GoGoGate open licht aan
trigger:
platform: state
entity_id: cover.hek
from: "closed"
to: "open"
condition:
condition: and
conditions:
- condition: time
after: '00:00:00'
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.garden_lights_bright
- service: switch.turn_on
entity_id: switch.qubino_goap_zmnhbdx_flush_2_relays_switch
- id: '1566423130786'
alias: GoGoGate dicht licht uit
trigger:
platform: state
entity_id: cover.hek
from: "open"
to: "closed"
condition:
condition: and
conditions:
- condition: time
after: '00:00:00'
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.garden_lights_dim
- delay:
minutes: 1
- service: switch.turn_off
entity_id: switch.qubino_goap_zmnhbdx_flush_2_relays_switch
That is weird, I don’t see anything wrong with line 1, unless you have a carriage return or something, but if you are no longer using the web automation in Homeassistant, you do not need the id: lines, try taking them both out.
just did and result
Error loading /home/homeassistant/.homeassistant/configuration.yaml: expected ‘’, but found ‘’
in “/home/homeassistant/.homeassistant/automations.yaml”, line 7, column 2
alias: GoGoGate open licht aan
trigger:
platform: state
entity_id: cover.hek
from: "closed"
to: "open"
condition:
condition: and
conditions:
- condition: time
after: '00:00:00'
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.garden_lights_bright
- service: switch.turn_on
entity_id: switch.qubino_goap_zmnhbdx_flush_2_relays_switch
alias: GoGoGate dicht licht uit
trigger:
platform: state
entity_id: cover.hek
from: "open"
to: "closed"
condition:
condition: and
conditions:
- condition: time
after: '00:00:00'
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.garden_lights_dim
- delay:
minutes: 1
- service: switch.turn_off
entity_id: switch.qubino_goap_zmnhbdx_flush_2_relays_switch
I’m not sure here, but what I would do is delete this:
to: "open"
And then retype it manually