panhans / HomeAssistant

Home Asisstant related stuff like blueprints for automations and scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Different tap_action and / or hold_action for each entity within the "rooms template"

hAMMERlized opened this issue · comments

Hi,

first of all, thanks for sharing your dashboard. I'm using and loving it. I am wondering if it is possible to have for each entity (e.g. light entity, climate entity etc.) a seperate tap_action or hold_action.

Only thing i have found is to use the "data:" attribute within the tap_action / hold_action, like this:

tap_action:
  action: call-service
  service: light.toggle
  data:
    entity_id: light.some_light
hold_action:
  action: call-service
  service: light.toggle
  data:
    entity_id: light.some_other_light

With this i am only able to use the tap_action for the whole template and all entity, not seperate. Hope you know what i mean. Thanks

Hi thanks for your feedback. I am very busy with my blueprints. I think I don't have time to maintain the rounded templates anymore.
I know what you mean. but this needs a complete rewrite of this cards, since you wish is only possible if the button card hols multiple buttons. Atm, it's not the case. Maybe it's easy to add some buttons in the room cards. But as I said: I am busy right now. Sorry