Skip to content

Commit

Permalink
feat: add new temperature sensors and update translations for ecoNET360i
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Dec 18, 2024
1 parent e5cb581 commit 80ede42
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
19 changes: 19 additions & 0 deletions custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"Circuit2thermostatTemp",
"TempClutch",
"Circuit3thermostatTemp",
"TempWthr",
"TempCircuit3",
"TempCircuit2",
"TempBuforUp",
Expand Down Expand Up @@ -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
Expand All @@ -196,6 +204,8 @@
"moduleCSoftVer": None,
"moduleLambdaSoftVer": None,
"modulePanelSoftVer": None,
# ecoNET360i
"PS": None,
}

# By default all sensors device_class are None
Expand All @@ -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 = {
Expand Down Expand Up @@ -268,6 +285,8 @@
"moduleCSoftVer": None,
"moduleLambdaSoftVer": None,
"modulePanelSoftVer": None,
# ecoNET360i
"PS": None,
}

ENTITY_ICON = {
Expand Down
24 changes: 24 additions & 0 deletions custom_components/econet300/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down
24 changes: 24 additions & 0 deletions custom_components/econet300/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down

0 comments on commit 80ede42

Please sign in to comment.