diff --git a/homeassistant/dashboard-en.yaml b/homeassistant/dashboard-en.yaml index 1576067..67cbef7 100644 --- a/homeassistant/dashboard-en.yaml +++ b/homeassistant/dashboard-en.yaml @@ -19,11 +19,17 @@ views: green: 0 yellow: 0 red: 100 + - type: entities + entities: + - entity: input_boolean.penguin_after_heater + name: Heating allowed + secondary_info: last-changed + state_color: true - square: false - columns: 3 + columns: 4 type: grid cards: - - show_name: true + - show_name: false show_icon: true type: button tap_action: @@ -31,49 +37,109 @@ views: entity: input_boolean.penguin_circulation_fan_adaptive name: Adaptive circulation show_state: false - - show_name: true + - type: conditional + conditions: + - entity: binary_sensor.penguin_max_heating_enabled + state: 'on' + card: + show_name: false + show_icon: true + type: button + tap_action: + action: toggle + entity: input_boolean.penguin_max_heating + name: Max heating + show_state: false + - type: conditional + conditions: + - entity: binary_sensor.penguin_max_heating_enabled + state: 'off' + card: + show_name: false + show_icon: true + type: button + tap_action: + action: toggle + entity: input_boolean.penguin_max_cooling + name: Max cooling + show_state: false + - show_name: false show_icon: true type: button tap_action: action: toggle - entity: input_boolean.penguin_max_heating - name: Max heating - show_state: false + icon: mdi:fireplace + entity: input_boolean.penguin_overpressure + - show_name: false + show_icon: true + type: button + tap_action: + action: toggle + icon: mdi:fan-plus + entity: input_boolean.penguin_boost + - square: false + columns: 3 + type: grid + cards: + - show_name: false + show_icon: true + type: button + tap_action: + action: toggle + entity: input_button.penguin_temperature_down + icon: mdi:minus + - type: gauge + entity: input_number.penguin_temperature_setting_helper + name: ' ' + needle: true + min: 16 + max: 30 + - show_name: false + show_icon: true + type: button + tap_action: + action: toggle + entity: input_button.penguin_temperature_up + icon: mdi:plus - type: entities entities: - entity: sensor.penguin_operating_mode - name: Mode + name: Tila + secondary_info: last-changed - entity: sensor.penguin_room_temperature_1 name: Room temperature - entity: sensor.penguin_temperature_setting name: Temperature setpoint - entity: sensor.penguin_circulation_fan_pct - name: Criculation fan + name: Circulation fan pct + secondary_info: last-changed state_color: false - type: entities entities: - entity: sensor.penguin_intake_air - name: Outside air at machine + name: Outside air at unit - entity: sensor.penguin_intake_air_24h name: Outside air 24h avg - entity: sensor.penguin_supply_air_hrc - name: Supply air after HRC + name: Intake after HRC - entity: sensor.penguin_supply_air_humidity - name: Supply air humidity + name: Intake humidity - entity: sensor.penguin_supply_air name: Supply air - entity: sensor.penguin_return_water - name: Return water + name: Return water temperature - entity: sensor.penguin_extract_air - name: Extract air before HRC + name: Extract before HRC - entity: sensor.penguin_waste_air name: Waste air - entity: sensor.penguin_extract_air_humidity name: Extract air humidity - entity: sensor.penguin_extract_air_humidity_48h - name: Extract air humidity 48h avg + name: Extract air humidity 48h - entity: sensor.penguin_hrc_efficiency_intake - name: HRC efficiency intake + icon: '' + name: HRC Efficiency intake - entity: sensor.penguin_hrc_efficiency_extract - name: HRC efficiency extract + name: HRC Efficiency extract title: Measurements +title: Heating & Ventilation diff --git a/homeassistant/dashboard-fi.yaml b/homeassistant/dashboard-fi.yaml index cf37f02..b7bc939 100644 --- a/homeassistant/dashboard-fi.yaml +++ b/homeassistant/dashboard-fi.yaml @@ -19,6 +19,12 @@ views: green: 0 yellow: 0 red: 100 + - type: entities + entities: + - entity: input_boolean.penguin_after_heater + name: Lämmitys sallittu + secondary_info: last-changed + state_color: true - square: false columns: 4 type: grid @@ -99,12 +105,14 @@ views: entities: - entity: sensor.penguin_operating_mode name: Tila + secondary_info: last-changed - entity: sensor.penguin_room_temperature_1 name: Huonelämpötila - entity: sensor.penguin_temperature_setting name: Asetettu lämpötila - entity: sensor.penguin_circulation_fan_pct name: Kiertoilma + secondary_info: last-changed state_color: false - type: entities entities: @@ -134,3 +142,4 @@ views: - entity: sensor.penguin_hrc_efficiency_extract name: LTO hyötysuhde poistoilma title: Mittaukset +title: Lämmitys & IV diff --git a/homeassistant/helpers.yaml b/homeassistant/helpers.yaml index 11941e3..bfdf14c 100644 --- a/homeassistant/helpers.yaml +++ b/homeassistant/helpers.yaml @@ -14,6 +14,9 @@ input_boolean: penguin_max_cooling: name: Penguin Max Cooling icon: mdi:snowflake + penguin_after_heater: + name: Penguin After Heater + icon: mdi:heating-coil input_button: penguin_temperature_up: name: Penguin temperature up diff --git a/homeassistant/homeassistant-rest.yaml b/homeassistant/homeassistant-rest.yaml index 087ae4f..b0da1ba 100644 --- a/homeassistant/homeassistant-rest.yaml +++ b/homeassistant/homeassistant-rest.yaml @@ -96,8 +96,15 @@ rest: - name: "Penguin overpressure" value_template: "{{ value_json['coils'][3]['value'] }}" icon: mdi:fireplace + - name: "Penguin after heater enabled" + value_template: "{{ value_json['coils'][54]['value'] }}" + icon: mdi:heating-coil template: + - sensor: + - name: "Penguin temperature delta" + state: "{{ (states('sensor.penguin_room_temperature_1')|float(default=0) - states('sensor.penguin_temperature_setting')|float(default=0)) | round(1, default=0) }}" + unit_of_measurement: "°C" - binary_sensor: - name: "Penguin max heating enabled" state: "{{ states('input_number.penguin_temperature_setting_helper') > states('sensor.penguin_room_temperature_1') }}" @@ -174,3 +181,15 @@ rest_command: verify_ssl: false username: pingvin password: enervent + penguin_heater_enabled: + url: https://192.168.0.210:8888/api/v1/coils/54/1 + method: POST + verify_ssl: false + username: pingvin + password: enervent + penguin_heater_disabled: + url: https://192.168.0.210:8888/api/v1/coils/54/0 + method: POST + verify_ssl: false + username: pingvin + password: enervent diff --git a/main.go b/main.go index e7489f3..7878220 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ import ( var static embed.FS var ( - version = "0.0.25" + version = "0.0.26" device pingvin.Pingvin config Conf usernamehash [32]byte