Lovelace UI tap_action does nothing

Hi all,

I’ve been working with Home assistant for a bit now and I was setting up my front end, now I’ve run in to a problem.

I added a glance card with light switches as following:

  • type: glance
    title: Lights
    show_state: false
    column_width: calc(100% / 3)
    entities:
    - entity: light.fibaro_system_fgd212_dimmer_2_level_4
    name: Kitchen
    icon: mdi:ceiling-light
    tap_action: toggle

Which shows up on the UI, but when I tap (or click for that matter) it does nothing.

I tried taking away the “tap_action: toggle”, which works, but then I get the popup for that entity, which I don’t want. and I tried setting the UI to the online edit mode (so no yaml editing), but this doesn’t allow me to use the tap_action.

I have the same problem with this part of code:

  • type: glance
    show_name: false
    show_state: false
    column_width: calc(100% / 1)
    entities:
    • entity: media_player.denon
      tap_action: call-service
      service: media_player.volume_up
      icon: mdi:volume-high

Anyway, this used to work a couple of days ago.

I’m on Home Assistant 0.84.3 running on HassOS 1.13. Reboot did nothing and I don’t see any error in the log.

Does anyone know what is wrong or what I am doing wrong?

Thanks in advance.

1 Like
tap-action:
  action: toggle

As per the breaking changes a couple of versions ago.

1 Like

Click… and hold… on the image for a couple of seconds.

Thanks, I’ll give it a try.

Too bad, now it just acts as if I didn’t specify anything…

This is my code now:

- entity: light.fibaro_system_fgd212_dimmer_2_level_4
    name: Kitchen
    icon: mdi:ceiling-light
    tap-action:
      action: toggle
- entity: light.fibaro_system_fgd212_dimmer_2_level_4
    name: Kitchen
    icon: mdi:ceiling-light
    tap_action:
      action: toggle

Use the _ in stead of - on tap_action

1 Like

I also have problem with tap_action but I have never got this code to work, so I am not sure what to think about it:

  - entity: timer.1_50min
    name: 50 min
    tap_action:
      action: call-service
      service: script.turn_on
      service_data:
        entity_id: script.start_timer_1_50min
    hold_action:
      action: call-service
      service: script.turn_on
      service_data:
        entity_id: script.reset_timer_1_50min
    type: entity-button

Me to, after the beaking change it is not possible to get the tap action to work

Me too… call-service call all entity in the group, not only the specified entity_id.

for example:

tap_action:
  action: call-service
  service: light.turn_on
  service_data:
    entity_id: light.l1

It’s turn on ALL lights, not only “l1” light.

Isn’t it homeassistant.turn_on?

That was it, so for all others, the correct syntax is:

tap_action:
  action: toggle

Thanks @Phoxy84

3 Likes

Do you have any solution to that problem?

Thanks

Hi,

It’s work after 0.85 release.

example, please.
Entity-Button Launches script, how can it be done?

  - entity: script.movie_light
    icon: 'mdi:movie'
    style:
      '--paper-item-icon-color': white
      border-color: 'rgb(34, 154, 210)'
      color: white
      left: 60%
      top: 47%
    tap_action:
      action: call-service
      service: script.turn_on
      service_data:
        entity_id: script.movie_light
    type: icon
3 Likes

Thank you very much, my friend!!!

1 Like

Thank you!!! Works with me. The space before “action: toggle”

Thank you!!!