#action tap_action and target vs data

1 messages · Page 1 of 1 (latest)

rough plover
#

i'm using 2026.1.3, and now, my previous tap_action are not working anymore:
Previous code (it"s not working anymore):

action: perform-action
target:
  entity_id: cover.demo
perform_action: cover.close_cover

error i get : Échec de l'exécution de l'action cover/open_cover. must contain at least one of entity_id, device_id, area_id, floor_id, label_id.

New code need to use :

action: perform-action
data:
  entity_id: cover.demo
perform_action: cover.close_cover

It's really strange as also the documentation is speaking about target & not about data :
https://www.home-assistant.io/dashboards/actions/#tap-action

Home Assistant

Define what an object does when interacted with.

hearty glen
#

This works fine for me btw:

show_name: true
show_icon: true
type: button
entity: cover.garage_door
tap_action:
  action: perform-action
  target:
    entity_id: cover.garage_door
  perform_action: cover.close_cover
#

I would initially suspect some custom something you have installed.

rough plover
#

@hearty glen , not working for me, but if i replace target with data, it's working

hearty glen
#

target should work fine and this hasn't changed in forever afaik

#

suggest try it in safe mode

rough plover
#

any idea to find what can cause this issue ?

hearty glen
#

Hmm, not sure. Anything installed or updated recently?
Only time I remember seeing something similar like this was some kind of honeycomb UI thing, but that was years ago.

rough plover