I have what seems to be a strange problem. I have a light that works fine from a button in lovelace, but if I use it in a script or scene it does not respond. The scenes/scripts have several lights in them and they work when running the script or scene. It’s the light.bordlampe_hjorne that does not respond.
I have changed the entity_id on that light a while back but it has worked after that.
Any ideas why?
- name: Livingroom normal
entities:
light.bordlampe_stue:
state: on
transition: 2
brightness_pct: 90
light.stalampe:
state: on
transition: 2
brightness_pct: 100
light.bordlampe_hjorne:
state: on
transition: 2
brightness: 100
- name: Livingroom dim
entities:
light.bordlampe_stue:
state: on
transition: 2
brightness_pct: 30
light.stalampe:
state: on
transition: 2
brightness_pct: 55
light.bordlampe_hjorne:
state: on
transition: 2
brightness: 0
ettermiddag:
sequence:
- service: light.turn_on
data:
entity_id: light.bordlampe_hjorne
- service: light.turn_on
data:
entity_id: light.kjokkenbenk
- service: light.turn_on
data:
entity_id: light.gang
- service: light.turn_on
data:
entity_id: light.stalampe
- service: light.turn_on
data:
entity_id: light.bordlampe_stue
- service: switch.turn_on
data:
entity_id: switch.kjokken_lys