Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
Updated version works like a charm. Thanks for looking into this!
from homebridge-zp.
Related Issues (20)
- Siri thinks the speakers are lights HOT 4
- Allow settings-only mode HOT 1
- Warning errors HOT 1
- Remaining Duration error messages HOT 1
- Homebridge -zp HOT 5
- HomeBridge Login Issues
- Input Enhancement HOT 1
- Ghost Sonos speakers appearing - advise please HOT 12
- Enhancement: Only allow TV input in supported rooms HOT 12
- Speakers show as Not Supported HOT 1
- Smart Speaker service
- TypeError: Cannot read properties of undefined (reading 'zoneGroupShortName') HOT 5
- Feature Request: Implementation of a TV Level to adjust surround sound level HOT 18
- SyntaxError: init() not yet called HOT 2
- Sonos Speakers Not Supported HOT 1
- How to start with Radio xyz? HOT 3
- Problem Sonos S1 HOT 1
- Use mDNS announcements
- Using homebridge-zp with Node 21 and Homebridge 18 - warnings and no zones detected HOT 2
- http status 412 Precondition Failed HOT 2
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 homebridge-zp.