Hey Guy
I am scratching my head here, I am just starting up in home automation with a RP3 and a z-wave-stick and a dimmer2 and motion detector.
I an trying to do a setup for a room, where the light should go on when the motrion sensor goes to on when the lights level is low enough and the brightness should be set according to the time of day. So that when you go into the room early in the morning you dont get blinded
This is the 3 automations i have build for it.
- id: Spise_lys_aften **(Turn on lights in the evening)**
alias: Spise_lys_aften
trigger:
- entity_id: binary_sensor.motion_spise
from: 'off'
platform: state
to: 'on'
condition:
- above: '0'
below: '20'
condition: numeric_state
entity_id: sensor.lux_spise
- after: '16:00'
before: 01:30
condition: time
action:
- data:
brightness: 255
entity_id: light.dimmer_spise1
service: light.turn_on
- id: Spise_lys_morgen **(Turn on lights in the morning)**
alias: Spise_lys_morgen
trigger:
- entity_id: binary_sensor.motion_spise
from: 'off'
platform: state
to: 'on'
condition:
- above: '0'
below: '20'
condition: numeric_state
entity_id: sensor.lux_spise
- after: 01:30
before: 08:00
condition: time
action:
- data:
brightness: 50
entity_id: light.dimmer_spise1
service: light.turn_on
- id: Spise-Sluk **(Turn of lights)**
alias: Spise-Sluk
trigger:
- entity_id: binary_sensor.motion_spise
for: 00:15
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: light.dimmer_spise1
service: light.turn_off
This is copied directly from the automations.yaml but are created using the Automations tool.
If i trigger the automations the light work but the automations does not get triggered.
Regards Jens