Skip to content

Commit

Permalink
Merge pull request #5 from RobertD502/dev
Browse files Browse the repository at this point in the history
Handle WF Filter reset BLE exception, Enable error sensor for all feeders, Bump to version 0.1.0b2
  • Loading branch information
RobertD502 authored Mar 24, 2023
2 parents 1ffebe6 + 5f7634f commit db19002
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ Each Feeder has the following entities:
| `Battery installed` | `Binary Sensor` | If batteries are removed or installed, power cycling the feeder is required for the status to update. |
| `Battery status` | `Sensor` | - Will only become available when feeder is running on batteries. <br/>- Indicates the battery level (Normal or Low). |
| `Dispensed` | `Sensor` | Amount of food, in grams, dispensed today. |
| `Error` | `Sensor` | Identifies any errors reported by the feeder. |
| `Manually dispensed` | `Sensor` | Amount of food, in grams, manually dispensed today. |
| `Planned` | `Sensor` | Amount of food, in grams, that the feeder plans to dispense today. |
| `Planned dispensed` | `Sensor` | Of the planned amount that is to be dispensed today, amount of food (grams) that has been dispensed. |
Expand All @@ -166,6 +167,7 @@ Each Feeder has the following entities:
| `Child lock` | `Switch` | Only available if your feeder is online (connected to PetKit's servers). |
| `Reset desiccant` | `Button` | - Allows you to reset the desiccant back to 30 days after replacing it. <br/>- Only available if your feeder is online (connected to PetKit's servers). |
| `Battery status` | `Sensor` | - Will only become available when feeder is running on batteries. <br/>- Indicates the battery level (Normal or Low). |
| `Error` | `Sensor` | Identifies any errors reported by the feeder. |
| `RSSI` | `Sensor` | WiFi connection strength. |
| `Status` | `Sensor` | `Normal` = Feeder is connected to PetKit's servers <br/>`Offline` = Feeder is not connected to PetKit servers <br/>`On Batteries` = If installed, feeder is currently being powered by the batteries. |

Expand Down
2 changes: 2 additions & 0 deletions custom_components/petkit/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import asyncio

from petkitaio.constants import LitterBoxCommand, W5Command
from petkitaio.exceptions import BluetoothError
from petkitaio.model import Feeder, LitterBox, W5Fountain

from homeassistant.components.button import ButtonEntity
Expand All @@ -16,6 +17,7 @@

from .const import DOMAIN, FEEDERS, LITTER_BOXES, WATER_FOUNTAINS
from .coordinator import PetKitDataUpdateCoordinator
from .exceptions import PetKitBluetoothError


async def async_setup_entry(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/petkit/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/RobertD502/home-assistant-petkit/issues",
"requirements": ["petkitaio==0.1.1", "tzlocal>=4.2"],
"version": "0.1.0b1"
"version": "0.1.0b2"
}
2 changes: 1 addition & 1 deletion custom_components/petkit/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ async def async_setup_entry(
FeederDesiccant(coordinator, feeder_id),
FeederBattStatus(coordinator, feeder_id),
FeederRSSI(coordinator, feeder_id),
FeederError(coordinator, feeder_id),
))

# D3 & D4
Expand All @@ -85,7 +86,6 @@ async def async_setup_entry(
AmountEaten(coordinator, feeder_id),
TimesEaten(coordinator, feeder_id),
FoodInBowl(coordinator, feeder_id),
FeederError(coordinator, feeder_id),
))

# Litter boxes
Expand Down

0 comments on commit db19002

Please sign in to comment.