cancel
Showing results for 
Search instead for 
Did you mean: 

I can't figure out if it's a bug

raiz1990
Community Member

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

2 REPLIES 2

TripleM1
Community Member
  •  

Hollen_ar_mor
Community Member

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 ?