Code Monkey home page Code Monkey logo

Comments (7)

Jc2k avatar Jc2k commented on June 12, 2024 2

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.

mikewesner avatar mikewesner commented on June 12, 2024

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.

mikewesner avatar mikewesner commented on June 12, 2024

Please let me know if I can help test something or gather more info on this. Happy to help how I can.

from aiohomekit.

Jc2k avatar Jc2k commented on June 12, 2024

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.

mikewesner avatar mikewesner commented on June 12, 2024

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.

bdraco avatar bdraco commented on June 12, 2024

Since they are all supposed to be negative we can probably abs the value *-1 for compat

from aiohomekit.

Jc2k avatar Jc2k commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.