From d27617d5b693ea95e6f7dd6ba716708013758296 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 25 Jan 2025 22:23:29 -0500 Subject: [PATCH] Climate things --- main_dashboard.yaml | 73 ++++++++++++++++++++++++-- mobile_dashboard.yaml | 116 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+), 5 deletions(-) diff --git a/main_dashboard.yaml b/main_dashboard.yaml index a13bf82..9825f01 100644 --- a/main_dashboard.yaml +++ b/main_dashboard.yaml @@ -2428,6 +2428,36 @@ views: 'off': mdi:volume-off unavailable: mdi:map-marker-question show_header_toggle: false + - type: custom:state-switch + entity: input_boolean.emma_bedroom_heater_installed + states: + 'on': + type: custom:simple-thermostat + entity: climate.emma_bedroom_vtherm + header: false + decimals: 0 + step_size: 1 + layout: + mode: + headings: false + names: true + icons: true + step: row + control: + hvac: + heat: true + preset: + none: false + frost: + name: Minimum + eco: + name: Eco + comfort: + name: Comfort + boost: + name: Extra + activity: + name: Motion - type: entities entities: - entity: input_select.emma_bedroom_scenes @@ -2691,7 +2721,7 @@ views: state_color: true show_header_toggle: false - type: custom:simple-thermostat - entity: climate.basement_studio_thermostat + entity: climate.basement_studio_vtherm header: false decimals: 0 step_size: 1 @@ -2704,6 +2734,16 @@ views: control: hvac: heat: true + preset: + none: false + frost: + name: Minimum + eco: + name: Eco + comfort: + name: Comfort + boost: + name: Extra - type: custom:mushroom-select-card entity: input_select.basement_studio_scenes layout: horizontal @@ -2774,10 +2814,6 @@ views: case: first - entity: input_boolean.basement_studio_heat_allowed name: Heat Allowed - - entity: input_number.basement_studio_inactive_temp - name: Inactive Temp - - entity: input_number.basement_studio_active_temp - name: Active Temp - entity: automation.basement_lights_handling name: Auto Handling - entity: automation.basement_lights_adaptive_resync @@ -3370,6 +3406,7 @@ views: - entity_id: fan.all_fans - state: 'off' - state: unavailable + - integration: generic_thermostat sort: method: friendly_name reverse: false @@ -3484,6 +3521,12 @@ views: secondary_info: Turn on in summer show_header_toggle: false state_color: true + - type: entities + entities: + - entity: input_boolean.emma_bedroom_heater_installed + name: Heater Installed + show_header_toggle: false + state_color: true visibility: - condition: user users: @@ -3560,6 +3603,26 @@ views: exclude_states: - unavailable - unknown + - entity: climate.basement_studio_vtherm + name: Basement Studio VTherm + exclude_states: + - unavailable + - unknown + - entity: switch.basement_studio_heater + name: Basement Studio Heater + exclude_states: + - unavailable + - unknown + - entity: climate.emma_bedroom_vtherm + name: Emma Bedroom VTherm + exclude_states: + - unavailable + - unknown + - entity: switch.emma_bedroom_heater + name: Emma Bedroom Heater + exclude_states: + - unavailable + - unknown max_columns: 4 cards: [] badges: [] diff --git a/mobile_dashboard.yaml b/mobile_dashboard.yaml index 7e91240..3f0cc4e 100644 --- a/mobile_dashboard.yaml +++ b/mobile_dashboard.yaml @@ -1292,6 +1292,64 @@ views: card_type: separator name: Environment icon: mdi:thermometer + - type: conditional + conditions: + - condition: state + entity: input_boolean.basement_studio_heat_allowed + state: 'on' + card: + type: custom:stack-in-card + cards: + - features: + - style: icons + type: climate-hvac-modes + hvac_modes: + - 'off' + - heat + - type: target-temperature + - style: dropdown + type: climate-preset-modes + preset_modes: + - none + - frost + - eco + - comfort + - boost + type: tile + entity: climate.basement_studio_vtherm + vertical: false + show_entity_picture: false + hide_state: false + name: Basement Studio Heater + - type: horizontal-stack + cards: + - type: custom:bubble-card + card_type: button + button_type: state + entity: switch.basement_studio_heater + name: Heater Running + show_attribute: false + tap_action: + action: none + double_tap_action: + action: none + hold_action: + action: none + button_action: + tap_action: + action: none + double_tap_action: + action: none + hold_action: + action: none + styles: |- + .bubble-button-background { + opacity: 1 !important; + background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important; + } + .bubble-icon { + color: ${state === 'on' ? 'var(--accent-color)' : 'var(--text-color)'} !important; + } - type: horizontal-stack cards: - type: custom:bubble-card @@ -2947,6 +3005,64 @@ views: card_type: separator name: Environment icon: mdi:thermometer + - type: conditional + conditions: + - condition: state + entity: input_boolean.emma_bedroom_heater_installed + state: 'on' + card: + type: custom:stack-in-card + cards: + - features: + - style: icons + type: climate-hvac-modes + hvac_modes: + - 'off' + - heat + - type: target-temperature + - style: dropdown + type: climate-preset-modes + preset_modes: + - none + - frost + - eco + - comfort + - boost + type: tile + entity: climate.emma_bedroom_vtherm + vertical: false + show_entity_picture: false + hide_state: false + name: Emma Bedroom Heater + - type: horizontal-stack + cards: + - type: custom:bubble-card + card_type: button + button_type: state + entity: switch.emma_bedroom_heater + name: Heater Running + show_attribute: false + tap_action: + action: none + double_tap_action: + action: none + hold_action: + action: none + button_action: + tap_action: + action: none + double_tap_action: + action: none + hold_action: + action: none + styles: |- + .bubble-button-background { + opacity: 1 !important; + background-color: ${state === 'on' ? 'var(--accent-color)' : 'var(--background-color-2)'} !important; + } + .bubble-icon { + color: ${state === 'on' ? 'var(--accent-color)' : 'var(--text-color)'} !important; + } - type: conditional conditions: - condition: state