diff --git a/README.md b/README.md index 79ceb95..60b77f6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Custom Components for Home Assistant +# GE Kitchen Appliances (SmartHQ) ## `ge_kitchen` Integration for GE WiFi-enabled kitchen appliances. So far, I've only done fridges and ovens (because that's what I @@ -18,6 +18,3 @@ Oven Controls: ![Fridge controls](https://raw.githubusercontent.com/ajmarks/ha_components/master/img/oven_controls.png) -## What happened to `shark_iq`? - -It's part of Home Assistant as of [0.115](https://www.home-assistant.io/blog/2020/09/17/release-115/)! \ No newline at end of file diff --git a/ge_kitchen/__init__.py b/custom_components/ge_kitchen/__init__.py similarity index 100% rename from ge_kitchen/__init__.py rename to custom_components/ge_kitchen/__init__.py diff --git a/ge_kitchen/binary_sensor.py b/custom_components/ge_kitchen/binary_sensor.py similarity index 100% rename from ge_kitchen/binary_sensor.py rename to custom_components/ge_kitchen/binary_sensor.py diff --git a/ge_kitchen/config_flow.py b/custom_components/ge_kitchen/config_flow.py similarity index 100% rename from ge_kitchen/config_flow.py rename to custom_components/ge_kitchen/config_flow.py diff --git a/ge_kitchen/const.py b/custom_components/ge_kitchen/const.py similarity index 100% rename from ge_kitchen/const.py rename to custom_components/ge_kitchen/const.py diff --git a/ge_kitchen/devices/__init__.py b/custom_components/ge_kitchen/devices/__init__.py similarity index 100% rename from ge_kitchen/devices/__init__.py rename to custom_components/ge_kitchen/devices/__init__.py diff --git a/ge_kitchen/devices/base.py b/custom_components/ge_kitchen/devices/base.py similarity index 100% rename from ge_kitchen/devices/base.py rename to custom_components/ge_kitchen/devices/base.py diff --git a/ge_kitchen/devices/dishwasher.py b/custom_components/ge_kitchen/devices/dishwasher.py similarity index 100% rename from ge_kitchen/devices/dishwasher.py rename to custom_components/ge_kitchen/devices/dishwasher.py diff --git a/ge_kitchen/devices/fridge.py b/custom_components/ge_kitchen/devices/fridge.py similarity index 98% rename from ge_kitchen/devices/fridge.py rename to custom_components/ge_kitchen/devices/fridge.py index 65c1374..cc7880d 100644 --- a/ge_kitchen/devices/fridge.py +++ b/custom_components/ge_kitchen/devices/fridge.py @@ -91,7 +91,7 @@ class FridgeApi(ApplianceApi): GeErdSensor(self, ErdCode.HOT_WATER_IN_USE), GeErdSensor(self, ErdCode.HOT_WATER_SET_TEMP), GeErdPropertySensor(self, ErdCode.HOT_WATER_STATUS, "status"), - GeErdPropertySensor(self, ErdCode.HOT_WATER_STATUS, "time_remaining", icon_override="mdi:timer-outline"), + GeErdPropertySensor(self, ErdCode.HOT_WATER_STATUS, "time_until_ready", icon_override="mdi:timer-outline"), GeErdPropertySensor(self, ErdCode.HOT_WATER_STATUS, "current_temp", device_class_override=DEVICE_CLASS_TEMPERATURE), GeErdPropertyBinarySensor(self, ErdCode.HOT_WATER_STATUS, "faulted", device_class_override=DEVICE_CLASS_PROBLEM), GeDispenser(self) diff --git a/ge_kitchen/devices/oven.py b/custom_components/ge_kitchen/devices/oven.py similarity index 100% rename from ge_kitchen/devices/oven.py rename to custom_components/ge_kitchen/devices/oven.py diff --git a/ge_kitchen/entities/__init__.py b/custom_components/ge_kitchen/entities/__init__.py similarity index 100% rename from ge_kitchen/entities/__init__.py rename to custom_components/ge_kitchen/entities/__init__.py diff --git a/ge_kitchen/entities/common/__init__.py b/custom_components/ge_kitchen/entities/common/__init__.py similarity index 100% rename from ge_kitchen/entities/common/__init__.py rename to custom_components/ge_kitchen/entities/common/__init__.py diff --git a/ge_kitchen/entities/common/ge_entity.py b/custom_components/ge_kitchen/entities/common/ge_entity.py similarity index 100% rename from ge_kitchen/entities/common/ge_entity.py rename to custom_components/ge_kitchen/entities/common/ge_entity.py diff --git a/ge_kitchen/entities/common/ge_erd_binary_sensor.py b/custom_components/ge_kitchen/entities/common/ge_erd_binary_sensor.py similarity index 100% rename from ge_kitchen/entities/common/ge_erd_binary_sensor.py rename to custom_components/ge_kitchen/entities/common/ge_erd_binary_sensor.py diff --git a/ge_kitchen/entities/common/ge_erd_entity.py b/custom_components/ge_kitchen/entities/common/ge_erd_entity.py similarity index 100% rename from ge_kitchen/entities/common/ge_erd_entity.py rename to custom_components/ge_kitchen/entities/common/ge_erd_entity.py diff --git a/ge_kitchen/entities/common/ge_erd_property_binary_sensor.py b/custom_components/ge_kitchen/entities/common/ge_erd_property_binary_sensor.py similarity index 100% rename from ge_kitchen/entities/common/ge_erd_property_binary_sensor.py rename to custom_components/ge_kitchen/entities/common/ge_erd_property_binary_sensor.py diff --git a/ge_kitchen/entities/common/ge_erd_property_sensor.py b/custom_components/ge_kitchen/entities/common/ge_erd_property_sensor.py similarity index 100% rename from ge_kitchen/entities/common/ge_erd_property_sensor.py rename to custom_components/ge_kitchen/entities/common/ge_erd_property_sensor.py diff --git a/ge_kitchen/entities/common/ge_erd_sensor.py b/custom_components/ge_kitchen/entities/common/ge_erd_sensor.py similarity index 100% rename from ge_kitchen/entities/common/ge_erd_sensor.py rename to custom_components/ge_kitchen/entities/common/ge_erd_sensor.py diff --git a/ge_kitchen/entities/common/ge_erd_switch.py b/custom_components/ge_kitchen/entities/common/ge_erd_switch.py similarity index 100% rename from ge_kitchen/entities/common/ge_erd_switch.py rename to custom_components/ge_kitchen/entities/common/ge_erd_switch.py diff --git a/ge_kitchen/entities/common/ge_water_heater.py b/custom_components/ge_kitchen/entities/common/ge_water_heater.py similarity index 100% rename from ge_kitchen/entities/common/ge_water_heater.py rename to custom_components/ge_kitchen/entities/common/ge_water_heater.py diff --git a/ge_kitchen/entities/dishwasher/__init__.py b/custom_components/ge_kitchen/entities/dishwasher/__init__.py similarity index 100% rename from ge_kitchen/entities/dishwasher/__init__.py rename to custom_components/ge_kitchen/entities/dishwasher/__init__.py diff --git a/ge_kitchen/entities/dishwasher/ge_dishwasher_control_locked_switch.py b/custom_components/ge_kitchen/entities/dishwasher/ge_dishwasher_control_locked_switch.py similarity index 100% rename from ge_kitchen/entities/dishwasher/ge_dishwasher_control_locked_switch.py rename to custom_components/ge_kitchen/entities/dishwasher/ge_dishwasher_control_locked_switch.py diff --git a/ge_kitchen/entities/fridge/__init__.py b/custom_components/ge_kitchen/entities/fridge/__init__.py similarity index 100% rename from ge_kitchen/entities/fridge/__init__.py rename to custom_components/ge_kitchen/entities/fridge/__init__.py diff --git a/ge_kitchen/entities/fridge/const.py b/custom_components/ge_kitchen/entities/fridge/const.py similarity index 100% rename from ge_kitchen/entities/fridge/const.py rename to custom_components/ge_kitchen/entities/fridge/const.py diff --git a/ge_kitchen/entities/fridge/ge_abstract_fridge.py b/custom_components/ge_kitchen/entities/fridge/ge_abstract_fridge.py similarity index 100% rename from ge_kitchen/entities/fridge/ge_abstract_fridge.py rename to custom_components/ge_kitchen/entities/fridge/ge_abstract_fridge.py diff --git a/ge_kitchen/entities/fridge/ge_dispenser.py b/custom_components/ge_kitchen/entities/fridge/ge_dispenser.py similarity index 99% rename from ge_kitchen/entities/fridge/ge_dispenser.py rename to custom_components/ge_kitchen/entities/fridge/ge_dispenser.py index 0783109..69bf3c0 100644 --- a/ge_kitchen/entities/fridge/ge_dispenser.py +++ b/custom_components/ge_kitchen/entities/fridge/ge_dispenser.py @@ -122,3 +122,5 @@ class GeDispenser(GeWaterHeater): data["time_until_ready"] = self._stringify(self.hot_water_status.time_until_ready) if self.hot_water_status.tank_full != ErdFullNotFull.NA: data["tank_status"] = self._stringify(self.hot_water_status.tank_full) + + return data diff --git a/ge_kitchen/entities/fridge/ge_freezer.py b/custom_components/ge_kitchen/entities/fridge/ge_freezer.py similarity index 100% rename from ge_kitchen/entities/fridge/ge_freezer.py rename to custom_components/ge_kitchen/entities/fridge/ge_freezer.py diff --git a/ge_kitchen/entities/fridge/ge_fridge.py b/custom_components/ge_kitchen/entities/fridge/ge_fridge.py similarity index 100% rename from ge_kitchen/entities/fridge/ge_fridge.py rename to custom_components/ge_kitchen/entities/fridge/ge_fridge.py diff --git a/ge_kitchen/entities/oven/__init__.py b/custom_components/ge_kitchen/entities/oven/__init__.py similarity index 100% rename from ge_kitchen/entities/oven/__init__.py rename to custom_components/ge_kitchen/entities/oven/__init__.py diff --git a/ge_kitchen/entities/oven/const.py b/custom_components/ge_kitchen/entities/oven/const.py similarity index 100% rename from ge_kitchen/entities/oven/const.py rename to custom_components/ge_kitchen/entities/oven/const.py diff --git a/ge_kitchen/entities/oven/ge_oven.py b/custom_components/ge_kitchen/entities/oven/ge_oven.py similarity index 100% rename from ge_kitchen/entities/oven/ge_oven.py rename to custom_components/ge_kitchen/entities/oven/ge_oven.py diff --git a/ge_kitchen/exceptions.py b/custom_components/ge_kitchen/exceptions.py similarity index 100% rename from ge_kitchen/exceptions.py rename to custom_components/ge_kitchen/exceptions.py diff --git a/ge_kitchen/manifest.json b/custom_components/ge_kitchen/manifest.json similarity index 100% rename from ge_kitchen/manifest.json rename to custom_components/ge_kitchen/manifest.json diff --git a/ge_kitchen/sensor.py b/custom_components/ge_kitchen/sensor.py similarity index 100% rename from ge_kitchen/sensor.py rename to custom_components/ge_kitchen/sensor.py diff --git a/ge_kitchen/strings.json b/custom_components/ge_kitchen/strings.json similarity index 100% rename from ge_kitchen/strings.json rename to custom_components/ge_kitchen/strings.json diff --git a/ge_kitchen/switch.py b/custom_components/ge_kitchen/switch.py similarity index 100% rename from ge_kitchen/switch.py rename to custom_components/ge_kitchen/switch.py diff --git a/ge_kitchen/translations/en.json b/custom_components/ge_kitchen/translations/en.json similarity index 100% rename from ge_kitchen/translations/en.json rename to custom_components/ge_kitchen/translations/en.json diff --git a/ge_kitchen/update_coordinator.py b/custom_components/ge_kitchen/update_coordinator.py similarity index 100% rename from ge_kitchen/update_coordinator.py rename to custom_components/ge_kitchen/update_coordinator.py diff --git a/ge_kitchen/water_heater.py b/custom_components/ge_kitchen/water_heater.py similarity index 100% rename from ge_kitchen/water_heater.py rename to custom_components/ge_kitchen/water_heater.py diff --git a/hacs.json b/hacs.json new file mode 100644 index 0000000..a9df915 --- /dev/null +++ b/hacs.json @@ -0,0 +1,6 @@ +{ + "name": "GE Kitchen Appliances (SmartHQ)", + "homeassistant": "2021.1.5", + "domains": ["binary_sensor", "sensor", "switch", "water_heater"], + "iot_class": "Cloud Polling" +} diff --git a/info.md b/info.md new file mode 100644 index 0000000..f8aee06 --- /dev/null +++ b/info.md @@ -0,0 +1,20 @@ +# GE Kitchen Appliances (SmartHQ) + +## `ge_kitchen` +Integration for GE WiFi-enabled kitchen appliances. So far, I've only done fridges and ovens (because that's what I +have), but I hope to to dishwashers next. Because HA doesn't have Fridge or Oven platforms, both fridges and ovens are +primarily represented as water heater entities, which works surprisingly well. If anybody who has other GE appliances +sees this and wants to pitch in, please shoot me a message or make a PR. + +Entities card: + +![Entities](https://raw.githubusercontent.com/ajmarks/ha_components/master/img/appliance_entities.png) + +Fridge Controls: + +![Fridge controls](https://raw.githubusercontent.com/ajmarks/ha_components/master/img/fridge_control.png) + +Oven Controls: + +![Fridge controls](https://raw.githubusercontent.com/ajmarks/ha_components/master/img/oven_controls.png) +