Giter Site home page Giter Site logo

Setup fails about yale_smart_alarm HOT 10 CLOSED

oeriksen avatar oeriksen commented on September 27, 2024
Setup fails

from yale_smart_alarm.

Comments (10)

oeriksen avatar oeriksen commented on September 27, 2024 1

Did give the PR a 👍

In the gui I get the following message: Unknown error occurred
The log message and stacktrace is attached.

home-assistant.log

from yale_smart_alarm.

gjohansson-ST avatar gjohansson-ST commented on September 27, 2024

Upgrade your HA to 2021.05 (DeviceInfo was not implemented before it looks like)
Let me know if that helps

from yale_smart_alarm.

oeriksen avatar oeriksen commented on September 27, 2024

I'm running 2021.05.5 (latest).

from yale_smart_alarm.

gjohansson-ST avatar gjohansson-ST commented on September 27, 2024

You're right. Apparently not yet implemented in core.
I have reversed to mapping instead so download it again and give it a try.
I am running this into the official component so have myself only been running this in dev.

from yale_smart_alarm.

oeriksen avatar oeriksen commented on September 27, 2024

You forgot to remove DeviceInfo imports:

from homeassistant.helpers.entity import DeviceInfo

from homeassistant.helpers.entity import DeviceInfo

from homeassistant.helpers.entity import DeviceInfo

After removing those it seems to work perfectly. I've just testet unlocking and locking the door and arming and disarming the alarm.

But it seems there are another issue. It's impossible to setup (add integration) without supplying the (door) code. Even though, after looking at the code, it should be optional. The error message is gone from my log after a reboot but I can recreate it if you want.

Looking forward to this being merged into the official component. Thank you for your work!

from yale_smart_alarm.

gjohansson-ST avatar gjohansson-ST commented on September 27, 2024

Thanks. The official PR (only alarm) has quite a few more adds than this custom.
home-assistant/core#50850
You might want to give it a 👍 to get it moving faster.

Btw: Would appreciate a report on the error for the door code as yes, it should be optional.

Thanks

from yale_smart_alarm.

gjohansson-ST avatar gjohansson-ST commented on September 27, 2024

Thanks. I believe it's now corrected so a code is not necessary.
Eventually in the official this will go into options anyhow. This custom is quite behind in dev but ok to use until official has been approved

from yale_smart_alarm.

oeriksen avatar oeriksen commented on September 27, 2024

I checked the Home Assistant logs today I find that they are full of these messages:

2021-06-10 21:09:02 ERROR (SyncWorker_7) [backoff] Giving up _authorize(...) after 8 tries (requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://mob.yalehomesystem.co.uk/yapi/yapi/o/token/)

2021-06-10 21:09:02 INFO (SyncWorker_7) [backoff] Backing off get_authenticated(...) for 0.1s (requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://mob.yalehomesystem.co.uk/yapi/yapi/o/token/)

2021-06-10 21:09:03 INFO (SyncWorker_7) [backoff] Backing off _authorize(...) for 0.7s (requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://mob.yalehomesystem.co.uk/yapi/yapi/o/token/)

So far over 180.000 lines 😄
I'm removing/deactivating for now.

from yale_smart_alarm.

gjohansson-ST avatar gjohansson-ST commented on September 27, 2024

So far over 180.000 lines 😄
I'm removing/deactivating for now.

Wow... That is some log-file then 😅
Apparently I had not updated it to the latest package version where this is addressed. I have now done so if you want to give it another try.

from yale_smart_alarm.

oeriksen avatar oeriksen commented on September 27, 2024

I've been using it for a couple of days now and only a handful of messages in the log so seems good so far. Thank you!

from yale_smart_alarm.

Related Issues (1)

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.