Skip to content

Instantly share code, notes, and snippets.

@epaulsen
Created November 15, 2023 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epaulsen/77b88337ef59387fdf0a8a940797734e to your computer and use it in GitHub Desktop.
Save epaulsen/77b88337ef59387fdf0a8a940797734e to your computer and use it in GitHub Desktop.
Button-card og gridview med husmodus
- square: false
columns: 3
type: grid
cards:
- type: custom:button-card
entity: input_text.husmodus
icon: mdi:sun-clock
color_type: card
aspect_ratio: 1/0.5
color: var(--card-background-color)
name: Dag
tap_action:
action: call-service
service: input_text.set_value
service_data:
value: DAG
entity_id: input_text.husmodus
target: {}
state:
- value: DAG
color: green
- type: custom:button-card
entity: input_text.husmodus
icon: mdi:weather-night
aspect_ratio: 1/0.5
color_type: card
color: var(--card-background-color)
name: Natt
tap_action:
action: call-service
service: input_text.set_value
service_data:
value: NATT
entity_id: input_text.husmodus
target: {}
state:
- value: NATT
color: green
- type: custom:button-card
entity: input_text.husmodus
name: Borte
color_type: card
aspect_ratio: 1/0.5
color: var(--card-background-color)
icon: mdi:home-export-outline
tap_action:
action: call-service
service: input_text.set_value
service_data:
value: BORTE
entity_id: input_text.husmodus
target: {}
state:
- value: BORTE
color: green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment