Skip to content

Commit

Permalink
Added Temp sensor numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
veista committed Dec 14, 2022
1 parent d0abdee commit fccc213
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion custom_components/nilan/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async def get_controller_software_version(self) -> str:
self._unit_id, CTS602InputRegisters.bus_version, 1, "input"
)
if bus_version is not None:
if int(bus_version.registers[0]) > 7:
if int(bus_version.registers[0]) > 19:
if result is not None:
for value in result.registers:
char1 = chr(value >> 8)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/nilan/device_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"get_t4_outlet": {
"entity_type": "sensor",
"min_bus_version": 1,
"supported_devices": (13,),
"supported_devices": (13, 35),
},
"get_t5_condenser_temperature": {
"entity_type": "sensor",
Expand Down
28 changes: 14 additions & 14 deletions custom_components/nilan/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
ATTRIBUTE_TO_SENSORS = {
"get_t0_controller_temperature": [
Map(
"Controller Board Temperature",
"Controller Board Temperature (T0)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -100,7 +100,7 @@
],
"get_t1_intake_temperature": [
Map(
"Fresh Air Intake Temperature",
"Fresh Air Intake Temperature (T1)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -111,7 +111,7 @@
],
"get_t2_inlet_temperature": [
Map(
"Supply Air Temperature",
"Supply Air Temperature (T2)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -122,7 +122,7 @@
],
"get_t3_exhaust_temperature": [
Map(
"Return Air Temperature",
"Return Air Temperature (T3)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -133,7 +133,7 @@
],
"get_t4_outlet": [
Map(
"Waste Air Temperature",
"Waste Air Temperature (T4)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -144,7 +144,7 @@
],
"get_t5_condenser_temperature": [
Map(
"Condenser Temperature",
"Condenser Temperature (T5)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -155,7 +155,7 @@
],
"get_t6_evaporator_temperature": [
Map(
"Waste Air Temperature",
"Waste Air Temperature (T6)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -166,7 +166,7 @@
],
"get_t7_inlet_temperature_after_heater": [
Map(
"Supply Air Temperature",
"Supply Air Temperature (T7)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -177,7 +177,7 @@
],
"get_t8_outdoor_temperature": [
Map(
"Fresh Air Intake Temperature",
"Fresh Air Intake Temperature (T8)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -188,7 +188,7 @@
],
"get_t10_external_temperature": [
Map(
"Return Air Temperature",
"Return Air Temperature (T10)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -199,7 +199,7 @@
],
"get_t13_return_temperature": [
Map(
"Return Water Temperature",
"Return Water Temperature (T13)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -210,7 +210,7 @@
],
"get_t14_supply_temperature": [
Map(
"Supply Water Temperature",
"Supply Water Temperature (T14)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -221,7 +221,7 @@
],
"get_t15_user_panel_temperature": [
Map(
"User Panel Temperature",
"User Panel Temperature (T15)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand All @@ -232,7 +232,7 @@
],
"get_t16_sacrificial_anode_temperature": [
Map(
"Anode Temperature",
"Anode Temperature (T16)",
TEMP_CELSIUS,
SensorDeviceClass.TEMPERATURE,
SensorStateClass.MEASUREMENT,
Expand Down

0 comments on commit fccc213

Please sign in to comment.