From 48a2ccbfdcf95e736ef168c284fa5f5fbeee8c68 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Jun 2026 18:26:21 +0200 Subject: [PATCH] add: configuration.yaml et helpers inputs --- configuration.yaml | 83 ++++++++++++++++++++++ inputs/input_boolean.yaml | 3 + inputs/input_datetime.yaml | 5 ++ inputs/input_number.yaml | 6 ++ inputs/input_select.yaml | 0 inputs/input_text.yaml | 140 +++++++++++++++++++++++++++++++++++++ 6 files changed, 237 insertions(+) create mode 100644 configuration.yaml create mode 100644 inputs/input_boolean.yaml create mode 100644 inputs/input_datetime.yaml create mode 100644 inputs/input_number.yaml create mode 100644 inputs/input_select.yaml create mode 100644 inputs/input_text.yaml diff --git a/configuration.yaml b/configuration.yaml new file mode 100644 index 0000000..8071744 --- /dev/null +++ b/configuration.yaml @@ -0,0 +1,83 @@ +# Loads default set of integrations. Do not remove. +default_config: + +template: !include template.yaml +notify: !include notify.yaml +sensor: !include sensors.yaml + +# Inputs +input_text: !include inputs/input_text.yaml +input_boolean: !include inputs/input_boolean.yaml +input_number: !include inputs/input_number.yaml +input_select: !include inputs/input_select.yaml +input_datetime: !include inputs/input_datetime.yaml + +# Load frontend themes from the themes folder +frontend: + themes: !include_dir_merge_named themes + +automation: !include automations.yaml +script: !include scripts.yaml +scene: !include scenes.yaml +#####Fin conf init + +http: + server_port: 8234 + use_x_forwarded_for: true + trusted_proxies: + - 192.168.42.0/24 + - 192.168.42.10 + +## SWITCHS +switch: + - platform: wake_on_lan + mac: "A4:BB:6D:88:A9:2D" + name: "Idefix" + +watchman: + ignored_items: + - "input_text.mealie_*" + - "group.outside_lights" + +rest: + - resource: http://192.168.42.10:7652/api/summary + scan_interval: 3600 + sensor: + - name: "Scrutiny NVMe Température" + unique_id: scrutiny_nvme_temp + value_template: "{{ value_json.data.summary['tw0r3cdk9dh0014o0bzi'].smart.temp }}" + unit_of_measurement: "°C" + device_class: temperature + icon: mdi:harddisk + + - name: "Scrutiny NVMe Statut" + unique_id: scrutiny_nvme_status + value_template: > + {% if value_json.data.summary['tw0r3cdk9dh0014o0bzi'].device.device_status == 0 %} + OK + {% else %} + ALERTE + {% endif %} + icon: mdi:harddisk-plus + + - name: "Scrutiny NVMe Heures" + unique_id: scrutiny_nvme_hours + value_template: "{{ value_json.data.summary['tw0r3cdk9dh0014o0bzi'].smart.power_on_hours }}" + unit_of_measurement: "h" + icon: mdi:clock-outline + + - resource: https://www.seismicportal.eu/fdsnws/event/1/query?format=json&limit=5&lat=49.5845&lon=1.1403&maxradius=5&orderby=time + scan_interval: 300 + sensor: + - name: "Dernier séisme" + unique_id: dernier_seisme + value_template: "{{ value_json.features[0].properties.mag }}" + unit_of_measurement: "M" + json_attributes_path: "$.features[0].properties" + json_attributes: + - time + - place + - mag + - depth + - magtype + diff --git a/inputs/input_boolean.yaml b/inputs/input_boolean.yaml new file mode 100644 index 0000000..ab10a17 --- /dev/null +++ b/inputs/input_boolean.yaml @@ -0,0 +1,3 @@ +timer_actif: + name: "Timer actif" + initial: false \ No newline at end of file diff --git a/inputs/input_datetime.yaml b/inputs/input_datetime.yaml new file mode 100644 index 0000000..0995758 --- /dev/null +++ b/inputs/input_datetime.yaml @@ -0,0 +1,5 @@ +mealie_semaine_ref: + name: Semaine de référence + has_date: true + has_time: false + initial: "2026-06-09" diff --git a/inputs/input_number.yaml b/inputs/input_number.yaml new file mode 100644 index 0000000..4551473 --- /dev/null +++ b/inputs/input_number.yaml @@ -0,0 +1,6 @@ +mojo_mystere: + name: Mojo Mystère + min: 0 + max: 100 + initial: 100 + step: 1 \ No newline at end of file diff --git a/inputs/input_select.yaml b/inputs/input_select.yaml new file mode 100644 index 0000000..e69de29 diff --git a/inputs/input_text.yaml b/inputs/input_text.yaml new file mode 100644 index 0000000..b9468e9 --- /dev/null +++ b/inputs/input_text.yaml @@ -0,0 +1,140 @@ +mealie_lundi_petit_dejeuner: + name: "Lundi - Petit-déjeuner" + max: 255 +mealie_lundi_dejeuner: + name: "Lundi - Déjeuner" + max: 255 +mealie_lundi_accompagnement: + name: "Lundi - Accompagnement" + max: 255 +mealie_lundi_collation: + name: "Lundi - Collation" + max: 255 +mealie_lundi_dessert: + name: "Lundi - Dessert" + max: 255 +mealie_lundi_diner: + name: "Lundi - Dîner" + max: 255 + +mealie_mardi_petit_dejeuner: + name: "Mardi - Petit-déjeuner" + max: 255 +mealie_mardi_dejeuner: + name: "Mardi - Déjeuner" + max: 255 +mealie_mardi_accompagnement: + name: "Mardi - Accompagnement" + max: 255 +mealie_mardi_collation: + name: "Mardi - Collation" + max: 255 +mealie_mardi_dessert: + name: "Mardi - Dessert" + max: 255 +mealie_mardi_diner: + name: "Mardi - Dîner" + max: 255 + +mealie_mercredi_petit_dejeuner: + name: "Mercredi - Petit-déjeuner" + max: 255 +mealie_mercredi_dejeuner: + name: "Mercredi - Déjeuner" + max: 255 +mealie_mercredi_accompagnement: + name: "Mercredi - Accompagnement" + max: 255 +mealie_mercredi_collation: + name: "Mercredi - Collation" + max: 255 +mealie_mercredi_dessert: + name: "Mercredi - Dessert" + max: 255 +mealie_mercredi_diner: + name: "Mercredi - Dîner" + max: 255 + +mealie_jeudi_petit_dejeuner: + name: "Jeudi - Petit-déjeuner" + max: 255 +mealie_jeudi_dejeuner: + name: "Jeudi - Déjeuner" + max: 255 +mealie_jeudi_accompagnement: + name: "Jeudi - Accompagnement" + max: 255 +mealie_jeudi_collation: + name: "Jeudi - Collation" + max: 255 +mealie_jeudi_dessert: + name: "Jeudi - Dessert" + max: 255 +mealie_jeudi_diner: + name: "Jeudi - Dîner" + max: 255 + +mealie_vendredi_petit_dejeuner: + name: "Vendredi - Petit-déjeuner" + max: 255 +mealie_vendredi_dejeuner: + name: "Vendredi - Déjeuner" + max: 255 +mealie_vendredi_accompagnement: + name: "Vendredi - Accompagnement" + max: 255 +mealie_vendredi_collation: + name: "Vendredi - Collation" + max: 255 +mealie_vendredi_dessert: + name: "Vendredi - Dessert" + max: 255 +mealie_vendredi_diner: + name: "Vendredi - Dîner" + max: 255 + +mealie_samedi_petit_dejeuner: + name: "Samedi - Petit-déjeuner" + max: 255 +mealie_samedi_dejeuner: + name: "Samedi - Déjeuner" + max: 255 +mealie_samedi_accompagnement: + name: "Samedi - Accompagnement" + max: 255 +mealie_samedi_collation: + name: "Samedi - Collation" + max: 255 +mealie_samedi_dessert: + name: "Samedi - Dessert" + max: 255 +mealie_samedi_diner: + name: "Samedi - Dîner" + max: 255 + +mealie_dimanche_petit_dejeuner: + name: "Dimanche - Petit-déjeuner" + max: 255 +mealie_dimanche_dejeuner: + name: "Dimanche - Déjeuner" + max: 255 +mealie_dimanche_accompagnement: + name: "Dimanche - Accompagnement" + max: 255 +mealie_dimanche_collation: + name: "Dimanche - Collation" + max: 255 +mealie_dimanche_dessert: + name: "Dimanche - Dessert" + max: 255 +mealie_dimanche_diner: + name: "Dimanche - Dîner" + max: 255 + +mealie_notes: + name: "Notes menus" + max: 255 + +timer_source_device: + name: "Source du minuteur" + initial: "mobile_app_tablette"