So I’m trying to get a light to change color every hour here it is
- id: 'Lights Wake Up'
alias: 1030 Lights On
trigger:
- at: '10:30:00'
platform: time
condition:
- condition: state
entity_id: group.lightupstairs
state: 'off'
action:
- data:
entity_id: group.lightupstairs
rgb_color:
- 60
- 12
- 255
transition: 30
service: light.turn_on
- id: 'ColorChange_lr_east'
alias: LR Color 1130
trigger:
platform: time
minutes: '/120'
seconds: 00
condition:
- after: '10:30:00'
before: '03:00:00'
condition: time
action:
- service: light.turn_on
entity_id: group.all_lights
data_template:
hs_color:
- "{{ range(360)|random }}"
- "{{ range(80,101)|random }}"
brightness_pct: 100
With this error
automation:
- Invalid config for [automation]: [minutes] is an invalid option for [automation]. Check: automation->trigger->0->minutes. (See /home/homeassistant/.homeassistant/configuration.yaml, line 121). Please check the docs at https://home-assistant.io/components/automation/
- default_config: ?
script: ?
I’ve been reading the docs and checking other people’s example for a similar examples such as petros
Also one more question I also want to add a secondary condition so that it only does the action if the light is currently on. Point me in the right direction por favor?
Alright so I’m still erroring out, this is my first time doing a condition for state of the light so I’m not sure what I"m doing wrong. So here’s the example I’m pulling from