Giter Site home page Giter Site logo

Comments (10)

ebaauw avatar ebaauw commented on May 30, 2024

They changed the AlarmClock interface in sonos, the package I use to interact with the Sonos players. Maybe I missed one. What version of homebridge-zp are you on? Could you check the version of sonos as well through npm -g list --depth=1?

from homebridge-zp.

cakefornoreason avatar cakefornoreason commented on May 30, 2024

I'm using the newest (just a few hours old) version of homebridge-zp, and the sonos version listed in my setup is 0.22.1

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

Ah, I can reproduce the error. You don't have any alarms defined on your Sonos, do you? As a workaround you could just define two dummy alarms (just leave it disabled), and the error will go away. I'll check what's causing this and come up with a fix.

Unfortunately, the error occurs, even when alarms is not set in config.json.

from homebridge-zp.

cakefornoreason avatar cakefornoreason commented on May 30, 2024

Hmm... the fix of adding an alarm and disabling it doesn't seem to fix it for me. I'll keep checking, but alternately, I've been using a config.json that just disables the platform and that works fine, of course.

If there's anything else I can try out for you, I'd be glad to help out. Thanks!

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

Hmm... the fix of adding an alarm and disabling it doesn't seem to fix it for me

No it doesn't. That's why I said: "workaround".

I did find the cause: bencevans/node-sonos#211.

from homebridge-zp.

cakefornoreason avatar cakefornoreason commented on May 30, 2024

Sorry, didn't mean to call it a "fix." What I mean is that I still get the crash even with an alarm present, so at least for me, adding an alarm doesn't appear to work as a workaround, but again, it could be some other part of my specific config. Fortunately, the Sonos/HomeKit integration isn't critical for me. Good catch on finding the source though! I'll stay tuned :)

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

v0.2.16 will only crash when "alarms" is set in config.json and there's less than two alarms on Sonos. I've issued a PR to node-sonos (bencevans/node-sonos#212) to fix that, but we'll have wait and see if they accept it.

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

Fortunately, the Sonos/HomeKit integration isn't critical for me.

Yeah, less critical to me as well. Because of that, I've spent far less effort on homebridge-zp to make it bullet proof like homebridge-hue. Every advantage has its disadvantage...

from homebridge-zp.

ebaauw avatar ebaauw commented on May 30, 2024

OK, the fix is included in [email protected]. If you re-install homebridge-zp, npm should update sonos:

$ npm -g list --depth=1
/usr/local/lib
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
...
$ sudo npm -g i homebridge-zp
Password:
+ [email protected]
updated 2 packages in 2.753s
$ npm -g list --depth=1
/usr/local/lib
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
...

from homebridge-zp.

cakefornoreason avatar cakefornoreason commented on May 30, 2024

Updated version works like a charm. Thanks for looking into this!

from homebridge-zp.

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.