Skip to content

Instantly share code, notes, and snippets.

@esbenr
Created March 6, 2020 12:23
Show Gist options
  • Save esbenr/f0a7a1b0bd0b0b2a567a91a9969b1aa6 to your computer and use it in GitHub Desktop.
Save esbenr/f0a7a1b0bd0b0b2a567a91a9969b1aa6 to your computer and use it in GitHub Desktop.
Configuration for main lights in HA
type: horizontal-stack
cards:
- type: vertical-stack
cards:
- entity: light.kokken
type: entity-button
name: Køkken
icon_height: 40px
hold_action:
action: more-info
tap_action:
action: toggle
- type: horizontal-stack
cards:
- entity: scene.kokken_low
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-1'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.kokken_low
- entity: scene.kokken_medium
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-2'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.kokken_medium
- entity: scene.kokken_high
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-3'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.kokken_high
- type: vertical-stack
cards:
- entity: light.spisebord
type: entity-button
name: Spisebord
icon_height: 40px
hold_action:
action: more-info
tap_action:
action: toggle
- type: horizontal-stack
cards:
- entity: scene.spisebord_low
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-1'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.spisebord_low
- entity: scene.spisebord_medium
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-2'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.spisebord_medium
- entity: scene.spisebord_high
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-3'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.spisebord_high
- type: vertical-stack
cards:
- entity: light.alrum
type: entity-button
name: Alrum
icon_height: 40px
hold_action:
action: more-info
tap_action:
action: toggle
- type: horizontal-stack
cards:
- entity: scene.alrum_low
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-1'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.alrum_low
- entity: scene.alrum_medium
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-2'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.alrum_medium
- entity: scene.alrum_high
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-3'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.alrum_high
- type: vertical-stack
cards:
- entity: light.stue
type: entity-button
name: Stuen
icon_height: 40px
hold_action:
action: more-info
tap_action:
action: toggle
- type: horizontal-stack
cards:
- entity: scene.stuen_low
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-1'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.stuen_low
- entity: scene.stuen_medium
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-2'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.stuen_medium
- entity: scene.stuen_high
type: entity-button
show_name: false
icon_height: 30px
icon: 'mdi:numeric-3'
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.stuen_high
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment