custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

Fail to call any xxx.toggle from the ui #644

Closed bernardovalente closed 1 year ago

bernardovalente commented 1 year ago

Checklist

Describe the bug

HA can't call seem to call any xxx.toggle services from the ui, only from the developer tools. error

works on developer tools:

service: light.toggle
data: {}
target:
  entity_id: light.leds_laura

doesn't work on UI button card:

type: custom:button-card
tap_action:
  action: call-service
  service: light.toggle
  data: {}
  target:
    entity_id: light.leds_laura

Version of the card Version: 3.4.2

Solution

type: custom:button-card
tap_action:
  tap_action:
    action: call-service
    service: light.toggle
    service_data:
      entity_id: light.leds_laura
RomRider commented 1 year ago

Will work on the next major update or already works on the latest beta.