Skip to content

Commit

Permalink
Add oven
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Oct 24, 2024
1 parent 97b6d8a commit f9dc0e8
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lovelace/views/cards/let_op.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ cards:
entity: binary_sensor.ui_helper_let_op_wasmachine
state: "on"

- type: tile
entity: sensor.oven_status
name: Oven
visibility:
- condition: state
entity: binary_sensor.ui_helper_let_op_oven
state: "on"

- type: tile
entity: input_boolean.vacation_mode
visibility:
Expand Down
3 changes: 3 additions & 0 deletions lovelace/views/keuken.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ sections:
- type: heading
heading: Apparaten
heading_style: subtitle
- type: tile
entity: sensor.oven_status
name: Oven
- type: tile
entity: sensor.vaatwasser_status
name: Vaatwasser
Expand Down
3 changes: 3 additions & 0 deletions lovelace/views/welkom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ sections:
- type: tile
entity: cover.keuken
name: Rolgordijn
- type: tile
entity: sensor.oven_status
name: Oven
- type: tile
entity: sensor.vaatwasser_status
name: Vaatwasser
Expand Down
31 changes: 31 additions & 0 deletions packages/home_connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ template:
state: >-
{% from "home_connect.jinja" import program_translation %}
{% set prefix = "Vaatwasser Program " %}
{% set translations = {"BottomHeating": "Onderwarmte", "HotAir": "Warme lucht", "HotAirGrilling": "Warme lucht en grill", "KeepWarm": "Warmhouden", "PizzaSetting": "Pizzastand", "PreHeating": "Voorverwarmen", "PreheatOvenware": "Servies voorverwarmen", "SlowCook": "Langzaam garen", "TopBottomHeating": "Boven- en onder warmte", "TopBottomHeatingEco": "Boven- en onder warmte Eco"} %}
{{ program_translation(prefix, translations) }}
- name: Oven programma
icon: mdi:stove
state: >-
{% from "home_connect.jinja" import program_translation %}
{% set prefix = "Oven Program " %}
{% set translations = {"Auto2": "Auto 45-65°C", "Eco50": "Eco 50°C", "Glas40": "Glas 40°C", "Intensiv70": "Intensief 70°C", "Kurz60": "Kort 60°C", "MachineCare": "Machineverzorging", "NightWash": "Nachtprogramma", "PreRinse": "Voorspoelen", "Quick45": "Snel programma 45°C"} %}
{{ program_translation(prefix, translations) }}
Expand All @@ -34,6 +42,12 @@ template:
{% from "home_connect.jinja" import remaining_time %}
{{ remaining_time("sensor.vaatwasser_remaining_program_time", "switch.vaatwasser_power") }}
- name: Oven resterende minuten
icon: mdi:clock
state: >-
{% from "home_connect.jinja" import remaining_time %}
{{ remaining_time("sensor.oven_remaining_program_time", "switch.oven_power") }}
- name: Wasmachine status
icon: mdi:washing-machine
state: >-
Expand Down Expand Up @@ -64,6 +78,21 @@ template:
{{ states("switch.vaatwasser_power") }}
{%- endif %}
- name: Oven status
icon: mdi:stove
state: >-
{% if states("binary_sensor.oven_door") == "on" -%}
Deur open
{% elif states("sensor.oven_operation_state") == "Finished" -%}
Klaar
{% elif states("sensor.oven_operation_state") == "Run" -%}
{{ states("sensor.oven_resterende_minuten") }}
{% elif states("binary_sensor.oven_remote_start") == "on" -%}
Uitgestelde start
{%- else -%}
{{ states("switch.oven_power") }}
{%- endif %}
automation:
- id: home_connect_conversation_remaining_time
alias: "Spraakassistent: Wanneer is de machine klaar"
Expand All @@ -79,6 +108,8 @@ automation:
over {{ states("sensor.vaatwasser_resterende_minuten") }}
{% elif trigger.slots.machine == "wasmachine" and states("sensor.wasmachine_resterende_minuten") != "unavailable" %}
over {{ states("sensor.wasmachine_resterende_minuten") }}
{% elif trigger.slots.machine == "oven" and states("sensor.oven_resterende_minuten") != "unavailable" %}
over {{ states("sensor.oven_resterende_minuten") }}
{% else %}
Ik weet het niet, staat de {{ trigger.slots.machine }} wel aan?
{% endif %}
Expand Down
6 changes: 6 additions & 0 deletions packages/lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ template:
{{
states("sensor.wasmachine_status") not in ["off", "unavailable", "unknown"]
}}
- name: UI helper let op oven
state: >-
{{
states("sensor.oven_status") not in ["off", "unavailable", "unknown"]
}}
- name: UI helper let op section
state: >-
{{
Expand All @@ -89,6 +94,7 @@ template:
is_state("binary_sensor.ui_helper_let_op_afval_papier", "on") or
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("input_boolean.vacation_mode", "on") or
is_state("binary_sensor.ui_helper_let_op_zonnescherm", "on")
}}

0 comments on commit f9dc0e8

Please sign in to comment.