mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +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.
|
description: Show icon.
|
||||||
type: boolean
|
type: boolean
|
||||||
default: "true"
|
default: "true"
|
||||||
|
show_state:
|
||||||
|
required: false
|
||||||
|
description: Show state.
|
||||||
|
type: boolean
|
||||||
|
default: "false"
|
||||||
icon_height:
|
icon_height:
|
||||||
required: false
|
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)
|
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
|
```yaml
|
||||||
type: button
|
type: button
|
||||||
name: Turn Off Lights
|
name: Turn Off Lights
|
||||||
|
show_state: false
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: call-service
|
||||||
service: script.turn_on
|
service: script.turn_on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user