Service-button not acting as expected

Hi there,

I am trying to add a service-button in lovelace, but when i press it in the front end, instead of toggling the single automation, it toggles all automations.

Is my code correct or is this a bug? I’m on Hassio vsn 83.3

      - type: service-button
        title: Guest Mode
        service: automation.toggle
        service_data:
          entity_id: automation.wifi_away_mart
        style:
          top: 75%
          left: 50%
          font-size: 100%

That should work. Have you tried the service inside HA instead of lovelace? If it’s a lovelace issue, you could make a template switch that turns on and off the automation.

I can use the dev-service page to test toggle the automation without problem, and I have a this code below where the ‘type: image’ just above toggles the exact same thing - again without problem.

Do you think this may be a bug within lovelace then?

          - type: image
            tap_action: toggle
            entity: automation.wifi_away_mart
            state_image:
              off: /local/rooms/icons/tileBlank3.png
              on: /local/rooms/icons/tileBlank3.png
            style:
              top: 50%
              left: 50%
              width: 100%
              background: '#f2f4f4'

          - type: image
            title: test
            tap_action: toggle
            entity: automation.wifi_away_mart
            state_image:
              "on": /local/rooms/icons/shield-gray.png
              "off": /local/rooms/icons/shield-blue.png
            style:
              top: 30%
              left: 50%
              width: 30%
          - type: service-button
            title: Guest Mode
            service: automation.toggle
            service_data:
              entity_id: automation.wifi_away_mart
            style:
              top: 75%
              left: 50%

Just found this - think it’s related:

Just as a note if anyone else is looking at this. This is not fixed in 0.84.1

Fixed in 0.84.3