Skip to content

Commit

Permalink
started creating translations and setting default enabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
toggm committed Nov 21, 2024
1 parent adcb612 commit c50cfed
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 3 deletions.
2 changes: 2 additions & 0 deletions custom_components/askoheat/api_conf_desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
mode=NumberMode.BOX,
icon="mdi:timelapse",
api_descriptor=UnsignedIntRegisterInputDescriptor(0),
entity_registry_enabled_default=False,
),
AskoheatNumberEntityDescription(
key=NumberAttrKey.CON_PUMP_SEC_COUNT_SECONDS,
Expand All @@ -70,6 +71,7 @@
mode=NumberMode.BOX,
icon="mdi:timelapse",
api_descriptor=UnsignedIntRegisterInputDescriptor(1),
entity_registry_enabled_default=False,
),
AskoheatNumberEntityDescription(
key=NumberAttrKey.CON_AUTO_HEATER_OFF_MINUTES,
Expand Down
8 changes: 8 additions & 0 deletions custom_components/askoheat/api_par_desc.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
native_unit_of_measurement=UnitOfPower.WATT,
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
AskoheatSensorEntityDescription(
key=SensorAttrKey.PAR_HEATER5_POWER,
Expand All @@ -116,6 +117,7 @@
native_unit_of_measurement=UnitOfPower.WATT,
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
AskoheatSensorEntityDescription(
key=SensorAttrKey.PAR_HEATER6_POWER,
Expand All @@ -127,6 +129,7 @@
native_unit_of_measurement=UnitOfPower.WATT,
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
AskoheatSensorEntityDescription(
key=SensorAttrKey.PAR_NUMBER_OF_STEPS,
Expand Down Expand Up @@ -176,34 +179,39 @@
api_descriptor=FlagRegisterInputDescriptor(16, 2),
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
AskoheatBinarySensorEntityDescription(
key=BinarySensorAttrKey.PAR_HEATER_TYPE_SCREW_IN,
icon="mdi:screw-lag",
api_descriptor=FlagRegisterInputDescriptor(16, 3),
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
AskoheatBinarySensorEntityDescription(
key=BinarySensorAttrKey.PAR_WIRED_AS_STAR_CONNECTION,
icon="mdi:connection",
api_descriptor=FlagRegisterInputDescriptor(16, 4),
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
AskoheatBinarySensorEntityDescription(
key=BinarySensorAttrKey.PAR_WIRED_AS_DELTA_CONECTION,
icon="mdi:connection",
api_descriptor=FlagRegisterInputDescriptor(16, 5),
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
# bit 6 ignored
AskoheatBinarySensorEntityDescription(
key=BinarySensorAttrKey.PAR_TYPE_OEM_VERSION,
api_descriptor=FlagRegisterInputDescriptor(16, 7),
device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
],
)
83 changes: 80 additions & 3 deletions custom_components/askoheat/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,96 @@
},
"binary_sensor": {
"status.heater1": {
"name": "Status heater 1"
"name": "Heater 1"
},
"status.heater2": {
"name": "Status heater 2"
"name": "Heater 2"
},
"status.heater3": {
"name": "Status heater 3"
"name": "Heater 3"
},
"status.pump": {
"name": "Pump"
},
"status.relay_board_connected": {
"name": "Relay board connection"
},
"status.emergency_mode": {
"name": "Emergency mode"
},
"status.heat_pump_request": {
"name": "Heat pump request"
},
"status.legionella_protection": {
"name": "Legionella protection"
},
"status.analog_input": {
"name": "Analog input"
},
"status.setpoint": {
"name": "Setpoint"
},
"status.load_feedin": {
"name": "Load feedin"
},
"status.autoheater": {
"name": "Auto-heater"
},
"status.pump_relay_follow_up_time_active": {
"name": "Pump relay follow-up time active"
},
"status.temp_limit_reached": {
"name": "Temp. limit reached"
},
"status.error": {
"name": "Error"
},
"type_3_stage_version": {
"name": "3 stage version"
},
"type_7_stage_version": {
"name": "7 stage version"
},
"heater_type_flange": {
"name": "Heater type flange"
},
"heater_type_screw_in": {
"name": "Heater type screw-in"
},
"wired_as_star_connection": {
"name": "Wired as star-connection"
},
"wired_as_delta_connection": {
"name": "Wired as delta-connection"
},
"oem_version": {
"name": "OEM Version"
}
},
"text": {
"info_string": {
"name": "Info string"
}
}
},
"device": {
"modbus_master": {
"name": "Askoheat+ modbus master unit"
},
"heat_pump_control_unit": {
"name": "Heat pump control unit"
},
"analog_input_control_unit": {
"name": "Analog input control unit"
},
"energy_manager": {
"name": "Energy manager unit"
},
"water_heater_control_unit": {
"name": "Water heater unit"
},
"legio_protection_control_unit": {
"name": "Legionella protection unit"
}
}
}

0 comments on commit c50cfed

Please sign in to comment.