Button Just opens up history

Hi there. I've setup my button however when i press it, it just opens up the history? What am I doing wrong?
- type: buttons
entities:
- entity: button.deskpc_lock
name: Lock
icon: mdi:lock-outline
- entity: button.deskpcs_restart
name: Restart
icon: mdi:restart
- entity: button.deskpcs_shutdown
name: Shut Down
icon: mdi:power
- type: buttons
entities:
- entity: button.deskpc_lock
name: Lock
icon: mdi:lock-outline
- entity: button.deskpcs_restart
name: Restart
icon: mdi:restart
- entity: button.deskpcs_shutdown
name: Shut Down
icon: mdi:power
No description
Solution:
@Shifty / Arlo something like this works tho 🙂 ``` type: entities show_header_toggle: false state_color: true...
Jump to solution
9 Replies
Amadeo
Amadeo•2w ago
does the command work when pressed in the device settings?
Amadeo
Amadeo•2w ago
what is the "buttons" type of card, something I missed in the new update?
Shifty / Arlo
Shifty / ArloOP•2w ago
yes it does.
Shifty / Arlo
Shifty / ArloOP•2w ago
Home Assistant
Button card
The Button card allows you to add buttons to perform tasks.
Shifty / Arlo
Shifty / ArloOP•7d ago
Home Assistant Community
Center Lovelace Entities Buttons
type: entities title: distribution for all rows entities: - &ref_buttons type: buttons entities: - &ref_button entity: sun.sun show_name: true show_icon: true - *ref_button - *ref_button - *ref_button - *ref_buttons - *ref_buttons card_mod: style: hui-buttons-row: $ hui-bu...
Amadeo
Amadeo•6d ago
that's interesting looks like this yaml magicery from the post you've linked just shows the entities rather than allowing them to be clicked same with this:
type: entities
show_header_toggle: false
state_color: true
card_mod:
style:
hui-buttons-row:
$ hui-buttons-base $: |
.ha-scrollbar {
justify-content: center;
}
entities:
- type: buttons
entities:
- entity: button.amadeo_pc_setvolumetest
name: Volume to 10
- entity: button.zigbee2mqtt_bridge_restart
name: Restart Z2M
type: entities
show_header_toggle: false
state_color: true
card_mod:
style:
hui-buttons-row:
$ hui-buttons-base $: |
.ha-scrollbar {
justify-content: center;
}
entities:
- type: buttons
entities:
- entity: button.amadeo_pc_setvolumetest
name: Volume to 10
- entity: button.zigbee2mqtt_bridge_restart
name: Restart Z2M
the button that comes from zigbee2mqtt also shows history
Solution
Amadeo
Amadeo•6d ago
@Shifty / Arlo something like this works tho 🙂
type: entities
show_header_toggle: false
state_color: true
card_mod:
style:
hui-buttons-row:
$ hui-buttons-base $: |
.ha-scrollbar {
justify-content: center;
}
entities:
- type: buttons
entities:
- entity: button.amadeo_pc_setvolumetest
name: Volume to 10
tap_action:
action: call-service
service: button.press
service_data:
entity_id: button.amadeo_pc_setvolumetest
type: entities
show_header_toggle: false
state_color: true
card_mod:
style:
hui-buttons-row:
$ hui-buttons-base $: |
.ha-scrollbar {
justify-content: center;
}
entities:
- type: buttons
entities:
- entity: button.amadeo_pc_setvolumetest
name: Volume to 10
tap_action:
action: call-service
service: button.press
service_data:
entity_id: button.amadeo_pc_setvolumetest
Shifty / Arlo
Shifty / ArloOP•5d ago
Nice! Thank you! I was lookin ath the action stuff, but couldn't figure out how to do it, so this helps, thank you!

Did you find this page helpful?