Menu Control to Lights View

This commit is contained in:
darthsandmann 2022-08-07 20:32:29 +02:00
parent 6b1d46f915
commit 47bf872514
3 changed files with 63 additions and 55 deletions

View File

@ -0,0 +1,59 @@
- type: 'custom:button-card'
template: card_title
name: Menu Control
- type: 'custom:button-card'
template: card_generic
entity: timer.pos_timer
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Left Incr
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_left_incr
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Right Incr
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_right_incr
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Up
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_up
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Down
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_down
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_generic
entity: input_number.pos_left
- type: 'custom:button-card'
template: card_generic
entity: input_number.pos_right

View File

@ -1,61 +1,6 @@
#- type: 'custom:button-card' #- type: 'custom:button-card'
# template: card_title # template: card_title
# name: Lights # name: Lights
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Left Incr
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_left_incr
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Right Incr
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_right_incr
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Up
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_up
- type: 'custom:button-card'
template: card_script
variables:
ulm_card_script_title: Down
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.pos_down
- type: "horizontal-stack"
cards:
- type: 'custom:button-card'
template: card_generic
entity: input_number.pos_left
- type: 'custom:button-card'
template: card_generic
entity: input_number.pos_right
- type: 'custom:button-card'
template: card_generic
entity: timer.pos_timer
- type: "horizontal-stack" - type: "horizontal-stack"
cards: cards:
- type: 'custom:button-card' - type: 'custom:button-card'

View File

@ -88,6 +88,10 @@ views:
type: "vertical-stack" type: "vertical-stack"
cards: cards:
!include lovelace/lights/lightstripes.yaml !include lovelace/lights/lightstripes.yaml
- type: custom:vertical-layout
type: "vertical-stack"
cards:
!include lovelace/lights/lightmenu.yaml
- type: custom:vertical-layout - type: custom:vertical-layout