Skip to content

Commit 9cc712e

Browse files
committed
bugfix for not turning on ligtht in the morning
1 parent b89feaa commit 9cc712e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

prtg.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,12 @@ automation:
170170
- thu
171171
- fri
172172
action:
173-
service: "script.{{ states('sensor.prtg_script') }}"
174-
data:
175-
light: !secret noclight
173+
- service: light.turn_on
174+
target:
175+
entity_id: !secret noclight
176+
- service: "script.{{ states('sensor.prtg_script') }}"
177+
data:
178+
light: !secret noclight
176179
mode: single
177180

178181
- alias: lightsoff

0 commit comments

Comments
 (0)