Having trouble with switch.toggle honoring group definitions

When I call the switch.toggle service from the developer tools screen and give it an entity of “entity_id: group.dining_room_light_group”, it turns off only the 3 plugs defined in the group.

But when I call it via a lovelace service-button, it’s turning off those 3 plugs and additionally a 4th plug in a different room, not in the same group.

groups:
  dining_room_light_group:
    name: Dining Room Lights
    entities:
      - switch.042000465ccf7f755d40
      - switch.042000515ccf7f6f25a9
      - switch.042000465ccf7f75d7c9
     ...
     ...
          - service: switch.toggle
            service-data: 
              entity_id: group.dining_room_light_group
            style:
              '--iron-icon-height': 24px
              '--iron-icon-width': 24px
              left: 24.4%
              top: 69%
            title: ALL
            type: service-button

It’s turning on the plug labeled switch.04200051dc4f22234e02 even though that’s not part of the group. Like I said, if I call that service via the developer tools, it works. Am I doing something wrong or misunderstanding how it works?

I have tried removing all elements on the picture-elements panel besides the “ALL” service-button to make sure there’s no overlap, but the plugs are pretty far apart. the blue arrow is the button in question, the red arrow is the plug that shouldn’t be turning on since it’s not part of the group.

I’m on Hass.io 0.100.3, frontend version 20191002.2.

Looks like service-data in the card should be service_data. I bet it’s ignoring the invalid key and calling all entities as a result.

1 Like

Yup, that was it. Wow, that was driving me crazy. Thanks a bunch!

No prob! It’s the little things, I’ll tell ya…