mirror of https://github.com/simbaja/ha_gehome.git
- add preliminary dryer support, update manifest for version, change entity version to display applicance SW version and not the wifi SW version
This commit is contained in:
parent
b01799ff78
commit
e9a2441df9
|
@ -81,7 +81,7 @@ class ApplianceApi:
|
||||||
"name": self.name,
|
"name": self.name,
|
||||||
"manufacturer": "GE",
|
"manufacturer": "GE",
|
||||||
"model": self.model_number,
|
"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
|
@property
|
||||||
|
@ -114,4 +114,4 @@ class ApplianceApi:
|
||||||
return self.appliance.get_erd_value(code)
|
return self.appliance.get_erd_value(code)
|
||||||
except:
|
except:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
@ -12,14 +12,24 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
class DryerApi(ApplianceApi):
|
class DryerApi(ApplianceApi):
|
||||||
"""API class for dryer objects"""
|
"""API class for dryer objects"""
|
||||||
APPLIANCE_TYPE = ErdApplianceType.WASHER
|
APPLIANCE_TYPE = ErdApplianceType.DRYER
|
||||||
|
|
||||||
def get_all_entities(self) -> List[Entity]:
|
def get_all_entities(self) -> List[Entity]:
|
||||||
base_entities = super().get_all_entities()
|
base_entities = super().get_all_entities()
|
||||||
|
|
||||||
dryer_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
|
entities = base_entities + dryer_entities
|
||||||
return entities
|
return entities
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://github.com/simbaja/ha_components",
|
"documentation": "https://github.com/simbaja/ha_components",
|
||||||
"requirements": ["gekitchensdk==0.3.11","magicattr==0.1.5"],
|
"requirements": ["gekitchensdk==0.3.11","magicattr==0.1.5"],
|
||||||
"codeowners": ["@simbaja"]
|
"codeowners": ["@simbaja"],
|
||||||
"version": "0.3.11"
|
"version": "0.3.11"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue