Comments (7)
I've seen this before - probably the same brand of garage door opener - even though off spec i was going to change the error handler to invert positive error codes before trying but haven't got round to it yet.
from aiohomekit.
Just wanted to update this with another similar stack. Using the 819LMB bridge with a few liftmaster myq garage doors.
2021-01-17 10:55:36 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py", line 252, in async_process_entity_map
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py", line 379, in async_update
new_values_dict = await self.get_characteristics(
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py", line 415, in get_characteristics
return await self.pairing.get_characteristics(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/pairing.py", line 236, in get_characteristics
return format_characteristic_list(response)
File "/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/pairing.py", line 53, in format_characteristic_list
c["description"] = HapStatusCodes[c["status"]]
File "/usr/local/lib/python3.8/site-packages/aiohomekit/protocol/statuscodes.py", line 58, in __getitem__
raise KeyError(f"Item {item} not found")
KeyError: 'Item 70402 not found'
from aiohomekit.
Please let me know if I can help test something or gather more info on this. Happy to help how I can.
from aiohomekit.
Just to be clear - right now the only fix planned for this is to work around their broken HAP implementation enough so we can at least know the correct error message the device is sending. In the context of HA this will eventually manifest as a "Unavailable" state in the frontend. Because that's a cosmetic fix it's currently low down my list.
There is no planned fix that will make it work, and i'm not sure there is anything we could do on that front. I.e. If their HAP implementation was correct 70402
should actually be -70402
, which is a StatusServiceCommunicationFailure
or HAPSTATUSCODE_SERVICE_OFFLINE
in other HAP libraries. I suspect this is a device failure of some kind, likely a communication error between the bridge and doors.
from aiohomekit.
Interesting. Thanks! That makes sense. The doors do function and this is probably just tiny bit flakey. I haven't dug into it to figure out if it is doing retries or how it handles any of this. For the most part the status of the doors seems correct and it responds quickly.
from aiohomekit.
Since they are all supposed to be negative we can probably abs the value *-1 for compat
from aiohomekit.
Thats the plan I just haven't done it yet. Want to actually do something based on these error codes on the HA side too. Right now they would just be dropped.
from aiohomekit.
Related Issues (20)
- Don't fetch programmable switch events on reconnect without getting a GATT notify for them HOT 5
- There is a race where we can be waiting for the device to be detected at startup and we get it more than once because we don't clear it before its detected again
- Fetching friendly_name does a linear search
- Using aiohomekit standalone: transport not supported HOT 2
- Eve Degree: Various BLE errors HOT 1
- asyncio.exceptions.TimeoutError during zeroconf search needs to be re-raised as AccessoryNotFoundError
- Log says "pairing established" but any interaction throws "is no known alias" HOT 4
- `first` to get accessory_info at startup is unexpectedly expensive
- Connection refused HOT 2
- BLE Pairing can fail due to race
- BLE callbacks can error if a device is unpairing because the cache has been deleted
- Missing Service cache clear is missing from pairing process
- Many callback to Called async_set_available_state with True at startup HOT 1
- Video & Intercom Doorbell in HA HOT 6
- BLE Events might still be read when processing disconnected notifications
- Out of order pairing steps when using HomeSpan (async race condition?) HOT 15
- Disconnect during operation can result in an empty event
- Implement happy eye balls with aiohappyeyeballs HOT 1
- Consider lowering the Happy Eyeballs delay to 0.1 from 0.25
- Add support for link local ipv6 addresses now that we have Happy Eyeballs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiohomekit.