button-card
button-card copied to clipboard
button-card compatible with HA button object
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.
i have the same need
Needed too.
+1
+1
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