diff --git a/homeassistant/ui-lovelace-butterfly.yaml b/homeassistant/ui-lovelace-butterfly.yaml index 3aca2c9..6d8d324 100644 --- a/homeassistant/ui-lovelace-butterfly.yaml +++ b/homeassistant/ui-lovelace-butterfly.yaml @@ -23,6 +23,37 @@ views: # Status -> Output -> Seed -> Booster -> Emergency. max_columns: 1 sections: + # ---- Emergency shutdown (top) ----------------------------------- + - type: grid + cards: + - type: heading + heading: Emergency + heading_style: subtitle + icon: mdi:alarm-light + # One-tap emergency stop. Runs butterfly_edfa_shutdown: pump-1 to 0, + # booster off, then seed off (EDFA first, then seed). No confirmation + # so it acts immediately; the action is safe (it only turns things off). + - type: button + name: SHUTDOWN + icon: mdi:alarm-light + icon_height: 48px + show_state: false + grid_options: + columns: 12 + tap_action: + action: call-service + service: script.butterfly_edfa_shutdown + card_mod: + style: | + ha-card { + background: #c0392b; + color: #fff; + --primary-text-color: #fff; + --paper-item-icon-color: #fff; + font-weight: 800; + letter-spacing: 0.08em; + } + # ---- Rack status (full width) ----------------------------------- - type: grid column_span: 2 @@ -173,68 +204,6 @@ views: grid_options: columns: 6 - # ---- Emergency (full width) ------------------------------------- - - type: grid - column_span: 2 - cards: - - type: heading - heading: Emergency - heading_style: subtitle - icon: mdi:alarm-light - - type: horizontal-stack - cards: - - type: button - name: PUMP OFF - icon: mdi:power-off - icon_height: 44px - show_state: false - tap_action: - action: call-service - service: switch.turn_off - target: - entity_id: switch.butterfly_edfa_rack_amp_pump - card_mod: &estop_amber - style: | - ha-card { - background: #e67e22; - color: #fff; - --primary-text-color: #fff; - --paper-item-icon-color: #fff; - font-weight: 700; - letter-spacing: 0.04em; - } - - type: button - name: SEED OFF - icon: mdi:power-off - icon_height: 44px - show_state: false - tap_action: - action: call-service - service: switch.turn_off - target: - entity_id: switch.butterfly_edfa_rack_seed_laser - card_mod: *estop_amber - - type: button - name: SHUTDOWN - icon: mdi:alarm-light - icon_height: 44px - show_state: false - tap_action: - action: call-service - service: script.butterfly_edfa_shutdown - confirmation: - text: Ramp pump to 0, disable booster, then seed? - card_mod: - style: | - ha-card { - background: #c0392b; - color: #fff; - --primary-text-color: #fff; - --paper-item-icon-color: #fff; - font-weight: 800; - letter-spacing: 0.06em; - } - # =================================================================== # TAB 2 — DIAGNOSTICS & TRENDS # ===================================================================