diff --git a/lovelace/lights/lightmenu.yaml b/lovelace/lights/lightmenu.yaml new file mode 100644 index 0000000..86b2317 --- /dev/null +++ b/lovelace/lights/lightmenu.yaml @@ -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 \ No newline at end of file diff --git a/lovelace/overview/lights.yaml b/lovelace/overview/lights.yaml index 3ef39c0..2b36a66 100644 --- a/lovelace/overview/lights.yaml +++ b/lovelace/overview/lights.yaml @@ -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' diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index d36a653..8dd6795 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -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