From a58f54b5758029edccbbc3075b42f5b9deeb6443 Mon Sep 17 00:00:00 2001 From: golles Date: Sat, 14 Dec 2024 21:20:26 +0000 Subject: [PATCH] Add 3D printer --- lovelace/views/cards/let_op.yaml | 9 +++ lovelace/views/logeerkamer.yaml | 94 ++++++++++++++++++++++++++++++++ packages/homekit.yaml | 3 + packages/lovelace.yaml | 8 +++ scripts/update_resources | 1 + 5 files changed, 115 insertions(+) diff --git a/lovelace/views/cards/let_op.yaml b/lovelace/views/cards/let_op.yaml index df0b058..4b38f78 100644 --- a/lovelace/views/cards/let_op.yaml +++ b/lovelace/views/cards/let_op.yaml @@ -102,6 +102,15 @@ cards: entity: binary_sensor.ui_helper_let_op_oven state: "on" + - type: tile + entity: sensor.p1s_01p00c480300533_remaining_time + name: 3D printer + icon: mdi:printer-3d + visibility: + - condition: state + entity: binary_sensor.ui_helper_let_op_3d_printer + state: "on" + - type: tile entity: input_boolean.vacation_mode visibility: diff --git a/lovelace/views/logeerkamer.yaml b/lovelace/views/logeerkamer.yaml index 50b1e4e..8f58430 100644 --- a/lovelace/views/logeerkamer.yaml +++ b/lovelace/views/logeerkamer.yaml @@ -71,6 +71,100 @@ sections: state_content: state color: primary + - type: grid + cards: + - type: heading + heading: 3D printer + heading_style: subtitle + - type: tile + entity: switch.3d_printer_plug + name: Stroom + vertical: true + grid_options: + columns: 3 + rows: 2 + - type: tile + entity: light.p1s_01p00c480300533_chamber_light + name: Licht + vertical: true + visibility: + - condition: state + entity: sensor.p1s_01p00c480300533_print_status + state_not: offline + grid_options: + columns: 3 + rows: 2 + - type: tile + entity: button.p1s_01p00c480300533_pause_printing + name: Pauze + vertical: true + hide_state: true + visibility: + - condition: state + entity: button.p1s_01p00c480300533_pause_printing + state_not: unavailable + grid_options: + columns: 3 + rows: 2 + - type: tile + entity: button.p1s_01p00c480300533_resume_printing + name: Hervat + vertical: true + hide_state: true + visibility: + - condition: state + entity: button.p1s_01p00c480300533_resume_printing + state_not: unavailable + grid_options: + columns: 3 + rows: 2 + - type: tile + entity: button.p1s_01p00c480300533_stop_printing + name: Stop + vertical: true + hide_state: true + visibility: + - condition: state + entity: button.p1s_01p00c480300533_stop_printing + state_not: unavailable + grid_options: + columns: 3 + rows: 2 + - type: tile + entity: sensor.p1s_01p00c480300533_print_status + name: Status + icon: mdi:printer-3d + - type: tile + entity: select.p1s_01p00c480300533_printing_speed + name: Snelheid + visibility: + - condition: state + entity: select.p1s_01p00c480300533_printing_speed + state_not: unavailable + - type: tile + entity: sensor.p1s_01p00c480300533_print_progress + name: Voortgang + visibility: + - condition: state + entity: sensor.p1s_01p00c480300533_print_status + state: running + - type: tile + entity: sensor.p1s_01p00c480300533_remaining_time + name: Tijd + visibility: + - condition: state + entity: sensor.p1s_01p00c480300533_print_status + state: running + - type: tile + entity: image.p1s_01p00c480300533_cover_image + name: Print + hide_state: true + show_entity_picture: true + visibility: + - condition: state + entity: sensor.p1s_01p00c480300533_print_status + state: running + - type: grid cards: - type: heading diff --git a/packages/homekit.yaml b/packages/homekit.yaml index 0f876d3..a7fc850 100644 --- a/packages/homekit.yaml +++ b/packages/homekit.yaml @@ -30,6 +30,7 @@ homekit: - sensor.particulate_matter_pm_2_5 - sensor.toilet_klimaat_humidity - sensor.toilet_klimaat_temperature + - switch.3d_printer_plug - switch.adguard_home_primary_bescherming entity_config: alarm_control_panel.alarmo: @@ -44,5 +45,7 @@ homekit: name: Trapkast light.skull: name: Skull + switch.3d_printer_plug: + name: 3D printer switch.adguard_home_primary_bescherming: name: Internet bescherming diff --git a/packages/lovelace.yaml b/packages/lovelace.yaml index e55850c..42d115f 100644 --- a/packages/lovelace.yaml +++ b/packages/lovelace.yaml @@ -76,6 +76,13 @@ template: {{ states("sensor.wasmachine_status") not in ["off", "unavailable", "unknown"] }} + - name: UI helper let op 3d printer + state: >- + {{ + states("sensor.p1s_01p00c480300533_remaining_time") | int > 0 + }} + availability: >- + {{ is_number(states("sensor.p1s_01p00c480300533_remaining_time")) }} - name: UI helper let op oven state: >- {{ @@ -95,6 +102,7 @@ template: is_state("binary_sensor.ui_helper_let_op_vaatwasser", "on") or is_state("binary_sensor.ui_helper_let_op_wasmachine", "on") or is_state("binary_sensor.ui_helper_let_op_oven", "on") or + is_state("binary_sensor.ui_helper_let_op_3d_printer", "on") or is_state("input_boolean.vacation_mode", "on") or is_state("binary_sensor.ui_helper_let_op_zonnescherm", "on") }} diff --git a/scripts/update_resources b/scripts/update_resources index 56bf828..71ba44f 100755 --- a/scripts/update_resources +++ b/scripts/update_resources @@ -31,6 +31,7 @@ custom_components/blitzortung https://github.com/mrk-its/homeassis custom_components/car_wash https://github.com/Limych/ha-car_wash custom_components/eufy_security https://github.com/fuatakgun/eufy_security custom_components/flightradar24 https://github.com/AlexandrErohin/home-assistant-flightradar24 +custom_components/bambu_lab https://github.com/greghesp/ha-bambulab custom_components/home_connect_alt https://github.com/ekutner/home-connect-hass custom_components/ical https://github.com/tybritten/ical-sensor-homeassistant custom_components/kamstrup_403 https://github.com/golles/ha-kamstrup_403