Service: light.turn_on does not work

Hi all,

I have an issue with some of my lights. I try to turn them on using call service but this refuses to work.

service: light.turn_on
data:
  transition: 20
target:
  device_id: 2f78b01c67efcf73c30c4e4c557fbe3e

When I use “device” turn on in the automation it does work. Anyone know this issue and the solution?

type: turn_on
device_id: 2f78b01c67efcf73c30c4e4c557fbe3e
entity_id: e61200f8a6b13d925ff40b6d440ffac9
domain: light

Both .yaml codes are made with the visual edditor

Also no errors in the log…
Other lights in my home do work with call service
Transition has no influence as I tried without this.

Using 2023.10.5

Lights are
TS0502A
by _TZ3000_el5kt5im
(Lidl products)

Try removing transition, some lights or integrations do not support it

The service needs an entity id, not a device id.

2 Likes

Thanks Stiltjack.

This indeed was a solution to get it working

To make it weird… My other lights respond correctly to the “device ID”.

This now works (previously this was not working):

service: light.turn_on
data:
  transition: 20
target:
  entity_id: light.ligthsethdeurlinks_light

This also works (based on “device ID” with an other lamp)

service: light.turn_on
data:
  transition: 20
target:
  device_id: 331ef35ee50074310ad3163a169a3938

Maybe this is a bug on the receiving end (within the lightbulb) I don’t know exactly.

Thank you for the solution!