From 84bd089ca0760430905491eaccf5821f29ea6103 Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:29:41 -0400 Subject: [PATCH 1/8] improve identification of water fountain model --- custom_components/petkit/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/petkit/binary_sensor.py b/custom_components/petkit/binary_sensor.py index 80a9c3a..caafbb5 100644 --- a/custom_components/petkit/binary_sensor.py +++ b/custom_components/petkit/binary_sensor.py @@ -92,7 +92,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } From 5cc0f9b36cf54af03f725415d6ca780eca801bee Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:30:12 -0400 Subject: [PATCH 2/8] improve identification of water fountain model --- custom_components/petkit/button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/petkit/button.py b/custom_components/petkit/button.py index 4bf6d6f..9242ce0 100644 --- a/custom_components/petkit/button.py +++ b/custom_components/petkit/button.py @@ -110,7 +110,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } From 0949f13b261fa66617fefb92ef8e6752a466f1e5 Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:30:55 -0400 Subject: [PATCH 3/8] add support for Eversweet 5 Mini --- custom_components/petkit/const.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/petkit/const.py b/custom_components/petkit/const.py index f944840..5df6f55 100644 --- a/custom_components/petkit/const.py +++ b/custom_components/petkit/const.py @@ -62,9 +62,11 @@ } WATER_FOUNTAINS = { - 'w5': 'Eversweet 3 Pro', + 2: 'Eversweet 5 Mini', + 4: 'Eversweet 3 Pro', } + FEEDERS = { 'd3': 'Fresh Element Infinity', 'd4': 'Fresh Element Solo', From 7083a4b74fe8cbf8b9524705cd5b5268054509bf Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:31:30 -0400 Subject: [PATCH 4/8] bump to 0.1.2 --- custom_components/petkit/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/petkit/manifest.json b/custom_components/petkit/manifest.json index fd0611c..3c39cec 100644 --- a/custom_components/petkit/manifest.json +++ b/custom_components/petkit/manifest.json @@ -9,5 +9,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/RobertD502/home-assistant-petkit/issues", "requirements": ["petkitaio==0.1.2", "tzlocal>=4.2"], - "version": "0.1.1" + "version": "0.1.2" } From 36d9ccaa8739995efe50d7ea01b784f25c736496 Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:32:12 -0400 Subject: [PATCH 5/8] improve water fountain model identification --- custom_components/petkit/select.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/petkit/select.py b/custom_components/petkit/select.py index 786e6f2..b167834 100644 --- a/custom_components/petkit/select.py +++ b/custom_components/petkit/select.py @@ -103,7 +103,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } @@ -205,7 +205,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } From 897e0ea6b52eda407bde534f3150bcec3a43eabd Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:32:51 -0400 Subject: [PATCH 6/8] improve water fountain model identification --- custom_components/petkit/sensor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/petkit/sensor.py b/custom_components/petkit/sensor.py index 8f1b485..2e4f92f 100644 --- a/custom_components/petkit/sensor.py +++ b/custom_components/petkit/sensor.py @@ -160,7 +160,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } @@ -235,7 +235,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } @@ -315,7 +315,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } @@ -385,7 +385,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } From 84228a02ede11fcfe7d6b6decbacac3315d19072 Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:33:21 -0400 Subject: [PATCH 7/8] improve water fountain model identification --- custom_components/petkit/switch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/petkit/switch.py b/custom_components/petkit/switch.py index 68bfdfe..3e02396 100644 --- a/custom_components/petkit/switch.py +++ b/custom_components/petkit/switch.py @@ -117,7 +117,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } @@ -214,7 +214,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } @@ -324,7 +324,7 @@ def device_info(self) -> dict[str, Any]: "identifiers": {(DOMAIN, self.wf_data.id)}, "name": self.wf_data.data['name'], "manufacturer": "PetKit", - "model": WATER_FOUNTAINS[self.wf_data.type], + "model": WATER_FOUNTAINS.get(self.wf_data.data["typeCode"], "Unidentified Water Fountain") if "typeCode" in self.wf_data.data else "Unidentified Water Fountain", "sw_version": f'{self.wf_data.data["hardware"]}.{self.wf_data.data["firmware"]}' } From 4da3ecea4e15ba7a176dcbf51b6da51cb20da553 Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Sat, 10 Jun 2023 13:36:01 -0400 Subject: [PATCH 8/8] add Eversweet 5 Mini documentation --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c7c069..540b155 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Custom Home Assistant component for controlling and monitoring PetKit devices an - [Fresh Element Solo](https://www.amazon.com/PETKIT-Automatic-Dispenser-Compatible-Freeze-Dried/dp/B09158J9PF/) - [Fresh Element Mini Pro](https://www.amazon.com/PETKIT-Automatic-Stainless-Indicator-Dispenser-2-8L/dp/B08GS1CPHH/) - [Eversweet 3 Pro Water Fountain](https://www.amazon.com/PETKIT-Wireless-Fountain-Stainless-Dispenser/dp/B09QRH6L3M/) +- [Eversweet 5 Mini Water Fountain](https://www.petkit.nl/products/eversweet-5-mini-binnen-2-weken-geleverd) - [Pura X Litter Box](https://www.amazon.com/PETKIT-Self-Cleaning-Scooping-Automatic-Multiple/dp/B08T9CCP1M) - [Pura MAX Litter Box with/without Pura Air deodorizer](https://www.amazon.com/PETKIT-Self-Cleaning-Capacity-Multiple-Automatic/dp/B09KC7Q4YF) @@ -188,7 +189,7 @@ Each Feeder has the following entities: ___
- Eversweet 3 Pro (click to expand) + Eversweet 3 Pro/5 Mini (click to expand)
Each water fountain has the following entities: