From 80ede421d995d0f93b318d86356302167fbd26c8 Mon Sep 17 00:00:00 2001 From: jontofront Date: Wed, 18 Dec 2024 17:03:36 +0200 Subject: [PATCH] feat: add new temperature sensors and update translations for ecoNET360i --- custom_components/econet300/const.py | 19 +++++++++++++++ custom_components/econet300/strings.json | 24 +++++++++++++++++++ .../econet300/translations/en.json | 24 +++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/custom_components/econet300/const.py b/custom_components/econet300/const.py index 3627085..c8dfd8f 100644 --- a/custom_components/econet300/const.py +++ b/custom_components/econet300/const.py @@ -92,6 +92,7 @@ "Circuit2thermostatTemp", "TempClutch", "Circuit3thermostatTemp", + "TempWthr", "TempCircuit3", "TempCircuit2", "TempBuforUp", @@ -180,7 +181,14 @@ "burnerOutput": PERCENTAGE, "mixerTemp": UnitOfTemperature.CELSIUS, "mixerSetTemp": UnitOfTemperature.CELSIUS, + # ecoNET360i "Circuit2thermostatTemp": UnitOfTemperature.CELSIUS, + "TempClutch": UnitOfTemperature.CELSIUS, + "Circuit3thermostatTemp": UnitOfTemperature.CELSIUS, + "TempWthr": UnitOfTemperature.CELSIUS, + "TempCircuit3": UnitOfTemperature.CELSIUS, + "TempCircuit2": UnitOfTemperature.CELSIUS, + "TempBuforUp": UnitOfTemperature.CELSIUS, } # By default all sensors state_class are MEASUREMENT @@ -196,6 +204,8 @@ "moduleCSoftVer": None, "moduleLambdaSoftVer": None, "modulePanelSoftVer": None, + # ecoNET360i + "PS": None, } # By default all sensors device_class are None @@ -221,7 +231,14 @@ "tempLowerBuffer": SensorDeviceClass.TEMPERATURE, "signal": SensorDeviceClass.SIGNAL_STRENGTH, "servoMixer1": SensorDeviceClass.ENUM, + # ecoNET360i "Circuit2thermostatTemp": SensorDeviceClass.TEMPERATURE, + "TempClutch": SensorDeviceClass.TEMPERATURE, + "Circuit3thermostatTemp": SensorDeviceClass.TEMPERATURE, + "TempWthr": SensorDeviceClass.TEMPERATURE, + "TempCircuit3": SensorDeviceClass.TEMPERATURE, + "TempCircuit2": SensorDeviceClass.TEMPERATURE, + "TempBuforUp": SensorDeviceClass.TEMPERATURE, } ENTITY_NUMBER_SENSOR_DEVICE_CLASS_MAP = { @@ -268,6 +285,8 @@ "moduleCSoftVer": None, "moduleLambdaSoftVer": None, "modulePanelSoftVer": None, + # ecoNET360i + "PS": None, } ENTITY_ICON = { diff --git a/custom_components/econet300/strings.json b/custom_components/econet300/strings.json index 7601906..2b506d2 100644 --- a/custom_components/econet300/strings.json +++ b/custom_components/econet300/strings.json @@ -206,6 +206,30 @@ }, "weather_control": { "name": "Weather control the boiler" + }, + "ps": { + "name": "PS" + }, + "circuit2thermostatTemp": { + "name": "Circuit 2 thermostat temperature" + }, + "temp_clutch": { + "name": "Clutch temperature" + }, + "circuit3thermostatTemp": { + "name": "Circuit 3 thermostat temperature" + }, + "temp_wthr": { + "name": "Weather temperature" + }, + "temp_circuit3": { + "name": "Circuit 3 temperature" + }, + "temp_circuit2": { + "name": "Circuit 2 temperature" + }, + "temp_bufor_up": { + "name": "Upper buffer temperature" } } } diff --git a/custom_components/econet300/translations/en.json b/custom_components/econet300/translations/en.json index 78d53ad..86304c4 100644 --- a/custom_components/econet300/translations/en.json +++ b/custom_components/econet300/translations/en.json @@ -206,6 +206,30 @@ }, "weather_control": { "name": "Weather control the boiler" + }, + "ps": { + "name": "PS" + }, + "circuit2thermostatTemp": { + "name": "Circuit 2 thermostat temperature" + }, + "temp_clutch": { + "name": "Clutch temperature" + }, + "circuit3thermostatTemp": { + "name": "Circuit 3 thermostat temperature" + }, + "temp_wthr": { + "name": "Weather temperature" + }, + "temp_circuit3": { + "name": "Circuit 3 temperature" + }, + "temp_circuit2": { + "name": "Circuit 2 temperature" + }, + "temp_bufor_up": { + "name": "Upper buffer temperature" } } }