I’m trying to make a lovelace button to turn a light on.
I keep getting an error message.
I’ve googled and searched to no avail.
I’m sure it’s something really stupid that I’m missing…
My code:
type: entity-button
tap_action:
action: call-service
service: light.turn_on
service-data:
entity_id: light.sofa_lamp
brightness: 200
show_icon: true
show_name: true
entity: light.sofa_lamp
The error message:
(In plain text so it’s searchable:)
Log Details (WARNING)
Not passing an entity ID to a service to target all entities is deprecated. Update your call to light.turn_on to be instead: entity_id: all
I know it’s only a warning, but the button fails.
I’ve tried countless variations of the code above.
What on earth am I doing wrong?