Skip to content

Commit

Permalink
Merge pull request #133 from jontofront/127-bug-fix
Browse files Browse the repository at this point in the history
127 bug fix
  • Loading branch information
jontofront authored Dec 17, 2024
2 parents 3e2da9c + c80d106 commit 80c3593
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 7 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,11 @@ Thank for @pblxptr add new code line from him

**Full Changelog**: [https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/compare/v0.3.3...v1.0.5](https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/compare/v0.3.3...v1.0.5)

## [v1.0.5]
## [v1.0.11]

Additions and Updates to Sensors:
Added boilerPowerKW as a new sensor type in custom_components/econet300/const.py and updated its unit, device class, and icon. [1] [2] [3] [4] [5]
Added feederWorks as a new binary sensor in custom_components/econet300/const.py and updated its icon. [1] [2] [3]
Updates to Existing Sensors:
Renamed the lighter sensor to lighterWorks in custom_components/econet300/const.py and updated its icon. [1] [2]
Updated the names of the lighter, boilerPower, and feeder sensors in custom_components/econet300/strings.json and custom_components/econet300/translations/en.json. [1] [2] [3] [4] [5] [6]
11 changes: 10 additions & 1 deletion custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
STATE_PROBLEM,
STATE_UNKNOWN,
EntityCategory,
UnitOfPower,
UnitOfTemperature,
UnitOfTime,
)
Expand Down Expand Up @@ -97,6 +98,7 @@
},
"_default": {
"boilerPower",
"boilerPowerKW",
"tempFeeder",
"fuelLevel",
"tempCO",
Expand Down Expand Up @@ -125,9 +127,10 @@

BINARY_SENSOR_MAP_KEY = {
"_default": {
"lighter",
"lighterWorks",
"pumpCOWorks",
"fanWorks",
"feederWorks",
"pumpFireplaceWorks",
"pumpCWUWorks",
"mainSrv",
Expand Down Expand Up @@ -162,6 +165,7 @@
"tempBack": UnitOfTemperature.CELSIUS,
"tempCWU": UnitOfTemperature.CELSIUS,
"boilerPower": PERCENTAGE,
"boilerPowerKW": UnitOfPower.KILO_WATT,
"fuelLevel": PERCENTAGE,
"tempUpperBuffer": UnitOfTemperature.CELSIUS,
"tempLowerBuffer": UnitOfTemperature.CELSIUS,
Expand Down Expand Up @@ -197,6 +201,7 @@
"tempExternalSensor": SensorDeviceClass.TEMPERATURE,
"tempCO": SensorDeviceClass.TEMPERATURE,
"boilerPower": SensorDeviceClass.POWER_FACTOR,
"boilerPowerKW": SensorDeviceClass.POWER,
"fanPower": SensorDeviceClass.POWER_FACTOR,
"tempFlueGas": SensorDeviceClass.TEMPERATURE,
"mixerSetTemp1": SensorDeviceClass.TEMPERATURE,
Expand Down Expand Up @@ -264,14 +269,17 @@
"statusCWU": "mdi:water-boiler",
"thermostat": "mdi:thermostat",
"boilerPower": "mdi:gauge",
"boilerPowerKW": "mdi:gauge",
"fuelLevel": "mdi:gas-station",
"lambdaLevel": "mdi:lambda",
"lambdaSet": "mdi:lambda",
"lambdaStatus": "mdi:lambda",
"lighterWorks": "mdi:fire",
"workAt100": "mdi:counter",
"workAt50": "mdi:counter",
"workAt30": "mdi:counter",
"FeederWork": "mdi:counter",
"feederWorks": "mdi:screw-lag",
"FiringUpCount": "mdi:counter",
"quality": "mdi:signal",
"pumpCOWorks": "mdi:pump",
Expand Down Expand Up @@ -305,6 +313,7 @@
"statusCWU": "mdi:water-boiler-off",
"mainSrv": "mdi:server-network-off",
"lan": "mdi:lan-disconnect",
"lighterWorks": "mdi:fire-off",
}

NO_CWU_TEMP_SET_STATUS_CODE = 128
Expand Down
2 changes: 1 addition & 1 deletion custom_components/econet300/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"issue_tracker": "https://github.com/jontofront/ecoNET-300-Home-Assistant-Integration/issues",
"requirements": [],
"ssdp": [],
"version": "v1.0.10",
"version": "v1.0.11",
"zeroconf": []
}
8 changes: 7 additions & 1 deletion custom_components/econet300/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"entity": {
"binary_sensor": {
"lighter": {
"lighter_works": {
"name": "Lighter"
},
"weather_control": {
Expand All @@ -38,6 +38,9 @@
"fan_works": {
"name": "Fan"
},
"feeder_works": {
"name": "Feeder"
},
"additional_feeder": {
"name": "Additional feeder"
},
Expand Down Expand Up @@ -67,6 +70,9 @@
"boiler_power": {
"name": "Boiler output"
},
"boiler_power_kw": {
"name": "Boiler power"
},
"fuel_level": {
"name": "Fuel level"
},
Expand Down
8 changes: 7 additions & 1 deletion custom_components/econet300/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"entity": {
"binary_sensor": {
"lighter": {
"lighter_works": {
"name": "Lighter"
},
"weather_control": {
Expand Down Expand Up @@ -67,6 +67,9 @@
"boiler_power": {
"name": "Boiler output"
},
"boiler_power_kw": {
"name": "Boiler power"
},
"fuel_level": {
"name": "Fuel level"
},
Expand Down Expand Up @@ -103,6 +106,9 @@
"feeder_work": {
"name": "Feeder work"
},
"feeder_works": {
"name": "Feeder"
},
"firing_up_count": {
"name": "Firing up count"
},
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colorlog==6.8.2
homeassistant>=2024.9.2
ruff==0.8.1
homeassistant>=2024.10.2
ruff==0.8.3
codespell==2.3.0

0 comments on commit 80c3593

Please sign in to comment.