diff --git a/custom_components/ge_kitchen/devices/base.py b/custom_components/ge_kitchen/devices/base.py index 350b57d..3bcb57c 100644 --- a/custom_components/ge_kitchen/devices/base.py +++ b/custom_components/ge_kitchen/devices/base.py @@ -81,7 +81,7 @@ class ApplianceApi: "name": self.name, "manufacturer": "GE", "model": self.model_number, - "sw_version": self.appliance.get_erd_value(ErdCode.WIFI_MODULE_SW_VERSION), + "sw_version": self.appliance.get_erd_value(ErdCode.APPLIANCE_SW_VERSION), } @property @@ -114,4 +114,4 @@ class ApplianceApi: return self.appliance.get_erd_value(code) except: return None - \ No newline at end of file + diff --git a/custom_components/ge_kitchen/devices/dryer.py b/custom_components/ge_kitchen/devices/dryer.py index b406077..8a231a8 100644 --- a/custom_components/ge_kitchen/devices/dryer.py +++ b/custom_components/ge_kitchen/devices/dryer.py @@ -12,14 +12,24 @@ _LOGGER = logging.getLogger(__name__) class DryerApi(ApplianceApi): """API class for dryer objects""" - APPLIANCE_TYPE = ErdApplianceType.WASHER + APPLIANCE_TYPE = ErdApplianceType.DRYER def get_all_entities(self) -> List[Entity]: base_entities = super().get_all_entities() dryer_entities = [ + GeErdSensor(self, ErdCode.LAUNDRY_MACHINE_STATE), + GeErdSensor(self, ErdCode.LAUNDRY_MACHINE_SUBCYCLE), + GeErdBinarySensor(self, ErdCode.LAUNDRY_END_OF_CYCLE), + GeErdSensor(self, ErdCode.LAUNDRY_TIME_REMAINING), + GeErdSensor(self, ErdCode.LAUNDRY_CYCLE), + GeErdSensor(self, ErdCode.LAUNDRY_DELAY_TIME_REMAINING), + GeErdSensor(self, ErdCode.LAUNDRY_DOOR), + GeErdSensor(self, ErdCode.LAUNDRY_DRYNESSNEW_LEVEL), + GeErdSensor(self, ErdCode.LAUNDRY_TEMPERATURENEW_OPTION), + GeErdBinarySensor(self, ErdCode.LAUNDRY_REMOTE_STATUS) ] entities = base_entities + dryer_entities return entities - \ No newline at end of file + diff --git a/custom_components/ge_kitchen/manifest.json b/custom_components/ge_kitchen/manifest.json index 5eafb9c..dc82b75 100644 --- a/custom_components/ge_kitchen/manifest.json +++ b/custom_components/ge_kitchen/manifest.json @@ -4,6 +4,6 @@ "config_flow": true, "documentation": "https://github.com/simbaja/ha_components", "requirements": ["gekitchensdk==0.3.11","magicattr==0.1.5"], - "codeowners": ["@simbaja"] + "codeowners": ["@simbaja"], "version": "0.3.11" }