forked from ajmarks/ha_components
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from simbaja/dev
Merge Dev into Master
- Loading branch information
Showing
41 changed files
with
961 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
# GE Home Appliances (SmartHQ) Changelog | ||
|
||
## 0.4.0 | ||
|
||
- Implemented Laundry Support (@warrenrees, @ssindsd) | ||
- Implemented Water Filter Support (@bendavis, @tumtumsback, @rgabrielson11) | ||
- Implemented Initial Advantium Support (@ssinsd) | ||
- Bug fixes for ovens (@TKpizza) | ||
- Additional authentication error handling (@rgabrielson11) | ||
- Additional dishwasher functionality (@ssinsd) | ||
- Introduced new select entity (@bendavis) | ||
- Miscellaneous entity bug fixes/refinements | ||
- Integrated new version of SDK | ||
|
||
## 0.3.12 | ||
|
||
- Initial tracked version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from custom_components.ge_home.entities.advantium.ge_advantium import GeAdvantium | ||
import logging | ||
from typing import List | ||
|
||
from homeassistant.helpers.entity import Entity | ||
from gehomesdk.erd import ErdCode, ErdApplianceType | ||
|
||
from .base import ApplianceApi | ||
from ..entities import GeErdSensor, GeErdBinarySensor, GeErdPropertySensor, GeErdPropertyBinarySensor, UPPER_OVEN | ||
|
||
_LOGGER = logging.getLogger(__name__) | ||
|
||
class AdvantiumApi(ApplianceApi): | ||
"""API class for Advantium objects""" | ||
APPLIANCE_TYPE = ErdApplianceType.ADVANTIUM | ||
|
||
def get_all_entities(self) -> List[Entity]: | ||
base_entities = super().get_all_entities() | ||
|
||
advantium_entities = [ | ||
GeErdSensor(self, ErdCode.UNIT_TYPE), | ||
GeErdBinarySensor(self, ErdCode.UPPER_OVEN_REMOTE_ENABLED, self._single_name(ErdCode.UPPER_OVEN_REMOTE_ENABLED)), | ||
GeErdBinarySensor(self, ErdCode.MICROWAVE_REMOTE_ENABLE), | ||
GeErdSensor(self, ErdCode.UPPER_OVEN_DISPLAY_TEMPERATURE, self._single_name(ErdCode.UPPER_OVEN_DISPLAY_TEMPERATURE)), | ||
GeErdSensor(self, ErdCode.ADVANTIUM_KITCHEN_TIME_REMAINING), | ||
GeErdSensor(self, ErdCode.ADVANTIUM_COOK_TIME_REMAINING), | ||
GeAdvantium(self), | ||
|
||
#Cook Status | ||
GeErdPropertySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "cook_mode"), | ||
GeErdPropertySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "termination_reason", icon_override="mdi:information-outline"), | ||
GeErdPropertySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "preheat_status", icon_override="mdi:fire"), | ||
GeErdPropertySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "temperature", icon_override="mdi:thermometer"), | ||
GeErdPropertySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "power_level", icon_override="mdi:gauge"), | ||
GeErdPropertySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "warm_status", icon_override="mdi:radiator"), | ||
GeErdPropertyBinarySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "door_status", device_class_override="door"), | ||
GeErdPropertyBinarySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "sensing_active", icon_on_override="mdi:flash-auto", icon_off_override="mdi:flash-off"), | ||
GeErdPropertyBinarySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "cooling_fan_status", icon_on_override="mdi:fan", icon_off_override="mdi:fan-off"), | ||
GeErdPropertyBinarySensor(self, ErdCode.ADVANTIUM_COOK_STATUS, "oven_light_status", icon_on_override="mdi:lightbulb-on", icon_off_override="mdi:lightbulb-off"), | ||
] | ||
entities = base_entities + advantium_entities | ||
return entities | ||
|
||
def _single_name(self, erd_code: ErdCode): | ||
return erd_code.name.replace(UPPER_OVEN+"_","").replace("_", " ").title() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.