Skip to content

Commit

Permalink
Add 3D printer
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Dec 14, 2024
1 parent 50cc5ce commit a58f54b
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lovelace/views/cards/let_op.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
94 changes: 94 additions & 0 deletions lovelace/views/logeerkamer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions packages/homekit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
8 changes: 8 additions & 0 deletions packages/lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
{{
Expand All @@ -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")
}}
1 change: 1 addition & 0 deletions scripts/update_resources
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a58f54b

Please sign in to comment.