custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

Custom:button-card to use for the “my position” of my blinds not working #660

Closed slingshot74 closed 1 year ago

slingshot74 commented 1 year ago

Hi,

I have blinds and with the my button the blinds go to the “my position”/

When I use a normal button everything works fine with this code: show_name: true show_icon: true type: button tap_action: action: toggle entity: button.werkkamer_my_position

I want to use the custom:button-card When i don’t specify an action the tap_action should be default - toggle But when i push the button I got the “more information” screen.

`type: custom:button-card entity: button.werkkamer_my_position color_type: icon color: steelblue show_entity_picture: true icon: mdi:star label: My tuin show_label: true show_name: false styles: card:

When I add tap_action: toggle nothing happens when I push the button.

`type: custom:button-card entity: button.werkkamer_my_position color_type: icon color: steelblue show_entity_picture: true icon: mdi:star label: My tuin show_label: true show_name: false tap_action: toggle styles: card:

Opontios commented 1 year ago

@slingshot74

tap_action:
  action: toggle

This is the syntax.

slingshot74 commented 1 year ago

@Opontios Unfortunately that didn't work although I get an error now.

Code: image

Error: Failed to call service button/turn_off. Service not found.

But you put om on the right track and got to get it working. Thank you very much! image