mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
New button card option: show_state (#14002)
This commit is contained in:
parent
f4d5725cbf
commit
f837befae2
@ -45,6 +45,11 @@ show_icon:
|
||||
description: Show icon.
|
||||
type: boolean
|
||||
default: "true"
|
||||
show_state:
|
||||
required: false
|
||||
description: Show state.
|
||||
type: boolean
|
||||
default: "false"
|
||||
icon_height:
|
||||
required: false
|
||||
description: Set the height for the icon. This is in pixels which is handled by the configuration UI. (Advanced users can use other CSS values if they like)
|
||||
@ -89,6 +94,7 @@ Title and Script Service Example:
|
||||
```yaml
|
||||
type: button
|
||||
name: Turn Off Lights
|
||||
show_state: false
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.turn_on
|
||||
|
Loading…
x
Reference in New Issue
Block a user