09-08-2023 12:15 AM
the script works well, it has a problem that I think is a bug, that when the TV is on the light turns on every 4 minutes and turns off after 10 seconds, but in the script there is no turning on when the TV is on.
metadata:
name: script auto luce salotto
description: Scripted automation
automations:
starters:
- type: device.state.OnOff
is: false
state: on
device: TV Lg - Salotto
actions:
- type: device.command.OnOff
on: true
devices: Luce Salotto - Salotto
- type: device.command.BrightnessRelative
brightnessRelativePercent: 40
devices: Luce Salotto - Salotto
- type: time.delay
for: 7 sec
- type: device.command.OnOff
on: false
devices: Luce Salotto - Salotto
09-08-2023 12:16 AM
09-19-2023 02:04 PM
Normally, just the brightness command is enough to start the lights.
You want to set your lights at 40% when you swich off the TV, that's it ?
Your script should work...
You're sure you don't have an other script running somewhere ?