I’ve got a nice system set up here with homeassistant running on a raspberry pi, with an rflink arduino connected to it.
I can switch on/off my klikaanklikuit (kaku) switches through the homeassistant webinterface and app.
But what I’m actually looking for is some automation, I want to turn off all my switches at 18:00:00 and off at 22:00:00
What I’ve tried is adding automation scripts to my configuration.yaml, without errors when I let homeassitant check it
But the switches don’t respond to it…
Can anyone help me set up my automation please?
My configuration.yaml:
light:
- platform: rflink
automatic_add: True
device_defaults:
fire_event: true
devices:
kaku_000043_1:
name: klikaanklikuit_1
kaku_000043_2:
name: klikaanklikuit_2
automation:
alias: 'Light on at night'
trigger:
platform: time
at: '18:00:00'
action:
service: light.turn_on
entity_id: light.klikaanklikuit_1
automation 2:
alias: 'Light off at night'
trigger:
platform: time
at: '22:00:00'
action:
service: light.turn_off
entity_id: light.klikaanklikuit_1
homeassistant:
name: Your HA name Here
latitude: !secret home_lat
longitude: !secret home_long
elevation: 0
unit_system: metric
time_zone: !secret home_time_zone ###<--- Set time zone here ###