From 14488e59493972593c339ad7721110069268d17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20GLON?= Date: Fri, 10 Jan 2025 20:38:21 +0100 Subject: [PATCH] Added measure_temperature as capability to socket, some sockets (like the Fritz Dect 200 socket) have the capability to measure temperature as well --- assets/capability/capabilities.json | 3 +- .../capability/capabilities/confort_mode.json | 201 ++++++++++++++++++ assets/device/classes/thermostat.json | 24 +-- 3 files changed, 215 insertions(+), 13 deletions(-) create mode 100755 assets/capability/capabilities/confort_mode.json diff --git a/assets/capability/capabilities.json b/assets/capability/capabilities.json index 87344c34..b85e1839 100755 --- a/assets/capability/capabilities.json +++ b/assets/capability/capabilities.json @@ -7,6 +7,7 @@ "light_mode", "vacuumcleaner_state", "thermostat_mode", + "confort_mode", "target_temperature", "measure_temperature", "measure_co", @@ -168,4 +169,4 @@ "target_temperature_min", "vacuumcleaner_job_mode", "valve_position" -] \ No newline at end of file +] diff --git a/assets/capability/capabilities/confort_mode.json b/assets/capability/capabilities/confort_mode.json new file mode 100755 index 00000000..7e45d24a --- /dev/null +++ b/assets/capability/capabilities/confort_mode.json @@ -0,0 +1,201 @@ +{ + "type": "enum", + "title": { + "en": "Comfort mode", + "nl": "Comfortmodus", + "de": "Komfort-modus", + "fr": "Mode confort", + "it": "Modalità comfort", + "sv": "Komfortläge", + "no": "Komfortmodus", + "es": "Modo confort", + "da": "Komforttilstand", + "ru": "Комфортный режим", + "pl": "Tryb komfortowy", + "ko": "컴포트 모드" + }, + "desc": { + "en": "Comfort mode for heating, ventilation and air-conditioning", + "nl": "", + "de": "", + "fr": "Mode confort pour le chauffage, la ventilation et la climatisation", + "it": "", + "sv": "", + "no": "", + "es": "", + "da": "", + "ru": "", + "pl": "", + "ko": "" + }, + "values": [ + { + "id": "auto", + "title": { + "en": "Automatic", + "nl": "Automatisch", + "de": "Automatisch", + "fr": "Automatique", + "it": "Automatica", + "sv": "Automatiskt", + "no": "Automatisk", + "es": "Automático", + "da": "Automatisk", + "ru": "Автоматически", + "pl": "Automatyczny", + "ko": "자동" + } + }, + { + "id": "comfort", + "title": { + "en": "Comfort", + "nl": "", + "de": "", + "fr": "Confort", + "it": "", + "sv": "", + "no": "", + "es": "", + "da": "", + "ru": "", + "pl": "", + "ko": "" + } + }, + { + "id": "standby", + "title": { + "en": "Standby / Absence", + "nl": "", + "de": "", + "fr": "Veille / Absence", + "it": "", + "sv": "", + "no": "", + "es": "", + "da": "", + "ru": "", + "pl": "", + "ko": "" + } + }, + { + "id": "economy", + "title": { + "en": "Economy / Night", + "nl": "", + "de": "", + "fr": "Economie / Nuit", + "it": "", + "sv": "", + "no": "", + "es": "", + "da": "", + "ru": "", + "pl": "", + "ko": "" + } + }, + { + "id": "building_protection", + "title": { + "en": "Building protection", + "nl": "", + "de": "", + "fr": "Protection du bâtiment / Hors gel", + "it": "", + "sv": "", + "no": "", + "es": "", + "da": "", + "ru": "", + "pl": "", + "ko": "" + } + } + ], + "getable": true, + "setable": true, + "uiComponent": "picker", + "$flow": { + "triggers": [ + { + "id": "confort_mode_changed", + "title": { + "en": "Confort mode changed", + "nl": "Comfortmodus is veranderd", + "de": "Komfort-Modus hat sich geändert", + "fr": "Le mode de confort a changé", + "it": "Modalità comfort modificata", + "sv": "Udobni način je spremenjen", + "no": "Komfortmodus er endret", + "es": "El modo confort ha cambiado", + "da": "Komforttilstand er ændret", + "ru": "Комфортный режим изменился", + "pl": "Tryb komfortowy uległ zmianie", + "ko": "컴포트 모드가 변경되었습니다" + }, + "args": [ + { + "name": "thermostat_mode", + "type": "dropdown", + "values": "$values" + } + ] + } + ], + "conditions": [ + { + "id": "comfort_mode_is", + "title": { + "en": "Comfort mode !{{is|is not}}", + "nl": "Komfortmodus !{{is|is niet}}", + "de": "Komfort-Modus !{{ist|ist nicht}}", + "fr": "Mode confort !{{est|n'est pas}}", + "it": "La modalità Comfort !{{è|non è}}", + "sv": "Udobni način !{{är|är inte}}", + "no": "Komfortmodus !{{er|er ikke}}", + "es": "El modo confort es !{{está|no está}}", + "da": "Komforttilstand !{{er|er ikke}}", + "ru": "Комфортный режим !{{|не}}", + "pl": "Tryb komfortowy !{{to|to nie}}", + "ko": "컴포트 모드!{{이면|이 아니면}}" + }, + "args": [ + { + "name": "thermostat_mode", + "type": "dropdown", + "values": "$values" + } + ] + } + ], + "actions": [ + { + "id": "comfort_mode_set", + "title": { + "en": "Set the mode", + "nl": "Stel de modus in", + "de": "Modus setzen", + "fr": "Définir le mode", + "it": "Imposta la modalità", + "sv": "Ställ in läget", + "no": "Innstill modusen", + "es": "Configurar el modo", + "da": "Indstil tilstanden", + "ru": "Установить режим", + "pl": "Ustaw tryb", + "ko": "온도조절기 모드 설정" + }, + "args": [ + { + "name": "thermostat_mode", + "type": "dropdown", + "values": "$values" + } + ] + } + ] + } +} diff --git a/assets/device/classes/thermostat.json b/assets/device/classes/thermostat.json index 288e0236..fe862f5f 100755 --- a/assets/device/classes/thermostat.json +++ b/assets/device/classes/thermostat.json @@ -14,16 +14,16 @@ "ko": "온도 조절 장치" }, "description": { - "en": "Use this device class for thermostats, either for the entire home or radiator-mounted, usually together with the `measure_temperature`, `target_temperature` and `thermostat_mode` capabilities.", - "de": "Nutze diese Geräteklasse für Thermostate, entweder für das gesamte Heim oder pro Heizung - normalerweise zusammen mit den `measure_temperature`-, `target_temperature`- und `thermostat_mode`-Fähigkeiten.", - "fr": "Utilisez cette classe d'appareil pour les thermostats, soit pour toute la maison soit montés sur radiateurs, généralemebnt avec les capacités `measure_temperature`, `target_temperature` et `thermostat_mode`.", - "it": "Utilizza questa classe di dispositivi per i termostati, sia quelli per l'intera casa che quelli montati sul radiatore, solitamente insieme alle funzionalità `measure_temperature`,`target_temperature` e `thermostat_mode`.", - "sv": "Använd den här enhetsklassen för termostater, antingen för hela hemmet eller elementmonterade, oftast tillsammans med funktionerna `measure_temperature`, `target_temperature` och `thermostat_mode`.", - "no": "Bruk denne enhetsklassen for termostater, enten for hele hjemmet eller monterte på varmeelement, ofte sammen med funksjonene `measure_temperature`, `target_temperature` og `thermostat_mode`.", - "es": "Utiliza esta clase de dispositivo para los termostatos, tanto los de toda la casa como los montados en los radiadores, generalmente junto con las capacidades `measure_temperature`, `target_temperature` y `thermostat_mode`.", - "da": "Brug denne enhedsklasse til termostater, enten til hele hjemmet eller på radiatorer, normalt sammen med `measure_temperature`, `target_temperature` og `thermostat_mode` funktionerne.", - "ru": "Используйте этот класс устройств для термостатов для всего дома или для термостатов на радиаторах, обычно вместе с функциями `measure_temperature`, `target_temperature` и `thermostat_mode`.", - "pl": "Użyj tej klasy urządzeń dla termostatów, zarówno dla całego domu, jak i urządzeń podłączanych do kaloryferów; zwykle razem ze zdolnościami `measure_temperature`, `target_temperature` oraz `thermostat_mode`.", - "ko": "이 디바이스 클래스는 집 전체 또는 특정 라디에이터의 온도를 조절하고 보통 'measure_temperature', 'target_temperature', 'thermostat_mode' 기능을 갖춘 온도조절기에 사용합니다." + "en": "Use this device class for thermostats, either for the entire home or radiator-mounted, usually together with the `measure_temperature`, `target_temperature`, `comfort_mode` and `thermostat_mode` capabilities.", + "de": "Nutze diese Geräteklasse für Thermostate, entweder für das gesamte Heim oder pro Heizung - normalerweise zusammen mit den `measure_temperature`-, `target_temperature`-, , `comfort_mode`- und `thermostat_mode`-Fähigkeiten.", + "fr": "Utilisez cette classe d'appareil pour les thermostats, soit pour toute la maison soit montés sur radiateurs, généralemebnt avec les capacités `measure_temperature`, `target_temperature`, `comfort_mode` et `thermostat_mode`.", + "it": "Utilizza questa classe di dispositivi per i termostati, sia quelli per l'intera casa che quelli montati sul radiatore, solitamente insieme alle funzionalità `measure_temperature`,`target_temperature`, `comfort_mode` e `thermostat_mode`.", + "sv": "Använd den här enhetsklassen för termostater, antingen för hela hemmet eller elementmonterade, oftast tillsammans med funktionerna `measure_temperature`, `target_temperature`, `comfort_mode` och `thermostat_mode`.", + "no": "Bruk denne enhetsklassen for termostater, enten for hele hjemmet eller monterte på varmeelement, ofte sammen med funksjonene `measure_temperature`, `target_temperature`, `comfort_mode` og `thermostat_mode`.", + "es": "Utiliza esta clase de dispositivo para los termostatos, tanto los de toda la casa como los montados en los radiadores, generalmente junto con las capacidades `measure_temperature`, `target_temperature`, `comfort_mode` y `thermostat_mode`.", + "da": "Brug denne enhedsklasse til termostater, enten til hele hjemmet eller på radiatorer, normalt sammen med `measure_temperature`, `target_temperature`, `comfort_mode` og `thermostat_mode` funktionerne.", + "ru": "Используйте этот класс устройств для термостатов для всего дома или для термостатов на радиаторах, обычно вместе с функциями `measure_temperature`, `target_temperature`, `comfort_mode` и `thermostat_mode`.", + "pl": "Użyj tej klasy urządzeń dla termostatów, zarówno dla całego domu, jak i urządzeń podłączanych do kaloryferów; zwykle razem ze zdolnościami `measure_temperature`, `target_temperature`, `comfort_mode` oraz `thermostat_mode`.", + "ko": "이 디바이스 클래스는 집 전체 또는 특정 라디에이터의 온도를 조절하고 보통 'measure_temperature', 'target_temperature', `comfort_mode` , 'thermostat_mode' 기능을 갖춘 온도조절기에 사용합니다." } -} \ No newline at end of file +}