button-card icon indicating copy to clipboard operation
button-card copied to clipboard

button-card compatible with HA button object

Open SeByDocKy opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. It will be a great addition ìf "button-card" can also be linked with a HA button object where the action is button.press and not switch.turn_on/turn_off. I have some button objects (defined in ESPhome) and I would like to use this card (for its lock feature) for button object

Describe the solution you'd like to be defined as

type: custom:button-card
lock:
  enabled: true
tap_action:
  action: toggle
entity: button.pvbrain_from_solar_to_grid
icon: mdi:transmission-tower-import
name: null

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

SeByDocKy avatar Mar 25 '22 08:03 SeByDocKy

i have the same need

mansellrace avatar Dec 01 '22 17:12 mansellrace

Needed too.

alexsahka avatar Feb 09 '23 05:02 alexsahka

+1

webdados avatar Mar 18 '23 11:03 webdados

+1

pickonedev avatar Jun 09 '23 09:06 pickonedev

I don't see what is the problem?

type: custom:button-card
lock:
  enabled: true
tap_action:
  action: call-service
  service: button.press
  service_data:
    entity_id: entity
entity: button.pvbrain_from_solar_to_grid
icon: mdi:transmission-tower-import
name: null

RomRider avatar Jul 26 '23 00:07 RomRider