loscara
(Claudio)
August 25, 2022, 1:33pm
1
Hi, I have created an automation where the trigger is the switching on of a shelly dimmer, in the conditions I set before 6:00 am and after 20:00 pm, and in the action the brightness adjustment. it doesn’t work though. even if I disable the conditions.
Any tips?
at9
(Adam)
August 26, 2022, 12:58am
2
You need to post the yaml of the automation before anyone can help.
1 Like
tom_l
August 26, 2022, 3:23am
3
Correctly formatted for the forum too please.
loscara
(Claudio)
August 26, 2022, 8:47am
4
where i can find the yaml?
loscara
(Claudio)
August 26, 2022, 9:14am
5
hi, this is the yalm
a correction on what I wrote. the automation works but it takes several seconds (about 5) before it turns down the brightness
alias: Accensione luce (Duplica)
description: ''
trigger:
- platform: device
type: turned_on
device_id: b045b57cf22bd33af46589181f310837
entity_id: light.shellydimmer_d484f9
domain: light
condition:
- condition: time
after: '20:00:00'
before: 07:00:00
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
enabled: false
action:
- type: turn_on
device_id: b045b57cf22bd33af46589181f310837
entity_id: light.shellydimmer_d484f9
domain: light
brightness_pct: 27
mode: single
tom_l
August 26, 2022, 10:36am
6
Please format your pasted config as per the link I posted.
at9
(Adam)
August 27, 2022, 5:25am
7
It looks ok and should work. I recreated the automation with a light I have and it worked in 0.07 seconds.
If you look at the timestamps in the debug how long is it taking to run from when you trigger it.
Debug is here.