Skip to content

Commit

Permalink
Added measure_temperature as capability to socket, some sockets (like…
Browse files Browse the repository at this point in the history
… the Fritz Dect 200 socket) have the capability to measure temperature as well
  • Loading branch information
sebglon committed Jan 10, 2025
1 parent e1979f5 commit 14488e5
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 13 deletions.
3 changes: 2 additions & 1 deletion assets/capability/capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"light_mode",
"vacuumcleaner_state",
"thermostat_mode",
"confort_mode",
"target_temperature",
"measure_temperature",
"measure_co",
Expand Down Expand Up @@ -168,4 +169,4 @@
"target_temperature_min",
"vacuumcleaner_job_mode",
"valve_position"
]
]
201 changes: 201 additions & 0 deletions assets/capability/capabilities/confort_mode.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
}
}
24 changes: 12 additions & 12 deletions assets/device/classes/thermostat.json
Original file line number Diff line number Diff line change
Expand Up @@ -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' 기능을 갖춘 온도조절기에 사용합니다."
}
}
}

0 comments on commit 14488e5

Please sign in to comment.