Skip to content

Commit

Permalink
feat: add new temperature sensors and update string names for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Dec 22, 2024
1 parent 02ecb29 commit ec50d3c
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
},
"cSpell.words": [
"aiohttp",
"bufor",
"clientsession",
"codespell",
"colorlog",
"econet",
"ecoster",
"hass",
"homeassistant",
"lamda",
"MILLIWATT",
"PARAMSUNITSNAMES"
"PARAMSUNITSNAMES",
"Wthr"
],
}
20 changes: 20 additions & 0 deletions custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
"TempCircuit3",
"TempCircuit2",
"TempBuforUp",
"TempCWU",
"TempBuforDown",
"heatingUpperTemp",
"Circuit1thermostat",
"heating_work_state_pump4",
},
"lambda": {
"lambdaStatus",
Expand Down Expand Up @@ -189,6 +194,9 @@
"TempCircuit3": UnitOfTemperature.CELSIUS,
"TempCircuit2": UnitOfTemperature.CELSIUS,
"TempBuforUp": UnitOfTemperature.CELSIUS,
"TempBuforDown": UnitOfTemperature.CELSIUS,
"heatingUpperTemp": UnitOfTemperature.CELSIUS,
"Circuit1thermostat": UnitOfTemperature.CELSIUS,
}

# By default all sensors state_class are MEASUREMENT
Expand All @@ -206,6 +214,7 @@
"modulePanelSoftVer": None,
# ecoNET360i
"PS": None,
"heating_work_state_pump4": None,
}

# By default all sensors device_class are None
Expand Down Expand Up @@ -239,6 +248,9 @@
"TempCircuit3": SensorDeviceClass.TEMPERATURE,
"TempCircuit2": SensorDeviceClass.TEMPERATURE,
"TempBuforUp": SensorDeviceClass.TEMPERATURE,
"TempBuforDown": SensorDeviceClass.TEMPERATURE,
"heatingUpperTemp": SensorDeviceClass.TEMPERATURE,
"Circuit1thermostat": SensorDeviceClass.TEMPERATURE,
}

ENTITY_NUMBER_SENSOR_DEVICE_CLASS_MAP = {
Expand Down Expand Up @@ -287,6 +299,10 @@
"modulePanelSoftVer": None,
# ecoNET360i
"PS": None,
"TempBuforDown": 1,
"heatingUpperTemp": 1,
"Circuit1thermostat": 1,
"heating_work_state_pump4": None,
}

ENTITY_ICON = {
Expand Down Expand Up @@ -329,6 +345,10 @@
"moduleCSoftVer": "mdi:raspberry-pi",
"moduleLambdaSoftVer": "mdi:raspberry-pi",
"modulePanelSoftVer": "mdi:alarm-panel-outline",
# ecoNET360i
"TempBuforDown": "mdi:thermometer",
"heatingUpperTemp": "mdi:thermometer",
"heating_work_state_pump4": "mdi:sync",
}

ENTITY_ICON_OFF = {
Expand Down
30 changes: 21 additions & 9 deletions custom_components/econet300/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,26 +210,38 @@
"ps": {
"name": "PS"
},
"circuit2thermostatTemp": {
"name": "Circuit 2 thermostat temperature"
"circuit2thermostat_temp": {
"name": "Circuit 2 thermostat temp."
},
"temp_clutch": {
"name": "Clutch temperature"
"name": "Clutch temp."
},
"circuit3thermostatTemp": {
"name": "Circuit 3 thermostat temperature"
"circuit3thermostat_temp": {
"name": "Circuit 3 thermostat temp."
},
"temp_wthr": {
"name": "Weather temperature"
"name": "Weather temp."
},
"temp_circuit3": {
"name": "Circuit 3 temperature"
"name": "Circuit 3 temp."
},
"temp_circuit2": {
"name": "Circuit 2 temperature"
"name": "Circuit 2 temp."
},
"temp_bufor_up": {
"name": "Upper buffer temperature"
"name": "Upper buffer temp."
},
"temp_bufor_down": {
"name": "Buffer lower temp."
},
"heating_upper_temp": {
"name": "Heating upper temp."
},
"circuit1thermostat": {
"name": "Circuit 1 actual temp."
},
"heating_work_state_pump4": {
"name": "Heating work state pump 4"
}
}
}
Expand Down
30 changes: 21 additions & 9 deletions custom_components/econet300/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,26 +210,38 @@
"ps": {
"name": "PS"
},
"circuit2thermostatTemp": {
"name": "Circuit 2 thermostat temperature"
"circuit2thermostat_temp": {
"name": "Circuit 2 thermostat temp."
},
"temp_clutch": {
"name": "Clutch temperature"
"name": "Clutch temp."
},
"circuit3thermostatTemp": {
"name": "Circuit 3 thermostat temperature"
"circuit3thermostat_temp": {
"name": "Circuit 3 thermostat temp."
},
"temp_wthr": {
"name": "Weather temperature"
"name": "Weather temp."
},
"temp_circuit3": {
"name": "Circuit 3 temperature"
"name": "Circuit 3 temp."
},
"temp_circuit2": {
"name": "Circuit 2 temperature"
"name": "Circuit 2 temp."
},
"temp_bufor_up": {
"name": "Upper buffer temperature"
"name": "Upper buffer temp."
},
"temp_bufor_down": {
"name": "Buffer lower temp."
},
"heating_upper_temp": {
"name": "Heating upper temp."
},
"circuit1thermostat": {
"name": "Circuit 1 actual temp."
},
"heating_work_state_pump4": {
"name": "Heating work state pump 4"
}
}
}
Expand Down

0 comments on commit ec50d3c

Please sign in to comment.