Menu Control to Lights View
This commit is contained in:
		
							
								
								
									
										59
									
								
								lovelace/lights/lightmenu.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								lovelace/lights/lightmenu.yaml
									
									
									
									
									
										Normal 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
 | 
			
		||||
@@ -1,61 +1,6 @@
 | 
			
		||||
#- type: 'custom:button-card'
 | 
			
		||||
#  template: card_title
 | 
			
		||||
#  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"
 | 
			
		||||
  cards:
 | 
			
		||||
    - type: 'custom:button-card'
 | 
			
		||||
 
 | 
			
		||||
@@ -88,6 +88,10 @@ views:
 | 
			
		||||
        type: "vertical-stack"
 | 
			
		||||
        cards:
 | 
			
		||||
          !include lovelace/lights/lightstripes.yaml
 | 
			
		||||
      - type: custom:vertical-layout
 | 
			
		||||
        type: "vertical-stack"
 | 
			
		||||
        cards:
 | 
			
		||||
          !include lovelace/lights/lightmenu.yaml
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  - type: custom:vertical-layout
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user