#light.turn_off (entity_id: all)

19 messages · Page 1 of 1 (latest)

arctic sorrel
#

Hey, i think this is the right place after i have searched the forums and the discord server with no luck.

I have the following script that i call from my bedroom button:

all_lights_off:
  alias: All lights off
  sequence:
    - service: light.turn_off
      entity_id: all
    - service: input_boolean.turn_off
      entity_id: input_boolean.candles

The issue is that all of a sudden the following is now also turning off some plugs i have around the house

- service: light.turn_off
  entity_id: all

The switch is not in the light domain, and secondly i even disabled the entity controlling this device like so:
https://imgur.com/a/owM3np2

I think this might be a bug, but not sure.

Any obvious overlooks i have done?

**Edit: (SOLVED): ** After updating deconz you get a new light entity called light.phoscon_all_off this entity however also includes switches, hence the problem.

strong escarp
#

Did you create a switch_as_x helper for it?

regal vault
#

and used that helper to create a light entity? 🙂

arctic sorrel
strong escarp
#

What does the logbook show?

fluid pewterBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

regal vault
#

for me using this doesn't even work at all

service: light.turn_off
entity_id: all
#

it works if I put it under target like

service: light.turn_off
target:
  entity_id: all
#

Otherwise I get:

This action requires a target, please define a target 'entity_id', 'device_id', or 'area_id' under 'target:' or 'data:'

#

It does only turn off lights though, no switches

arctic sorrel
arctic sorrel
#

I turned them on by hand, then calling the all_lights_off script mentioned in the post. However the logbook does not get new entries when the entity is disabled. But it still affected.

#

I get the same bad behavior by calling:

action: light.turn_off
target: 
  entity_id: all
regal vault
#

Just a check, but does it turn of if you do this:

service: light.turn_off
target:
  entity_id: "{{ states.light | map(attribute='entity_id') | list }}"
arctic sorrel
#

Oh thanks i found the culprit ...

#

This bad boy
light.phoscon_all_off yikes

#

What the hell deconz why you like this.