Comments (3)
How are you turning on the Sonos? I use a HomeKit scene that sets the both the On
and Volume
characteristics and I've never run into issues that the Sonos starts playing too loudly. I did run into some funny behaviour with Autoplay Volume on the Line-In, so I disabled that in Room Settings in the Sonos app.
I could introduce a config.json parameter maxVolume
and use that to set the maxValue
property of the characteristic used for volume (be that Volume
, Brightness
, or RotationSpeed
). With this you wouldn't be able to set volume above maxVolume
from HomeKit, but you would still be able to do that from the Sonos app, or from the physical buttons on the speaker.
Alternatively, I could introduce a config.json parameter poweronVolume
, and set the zone volume to this level, just before issuing the Play command. However, this could break my HomeKit scene, if it sends the change to Volume
before the change to On
(I don't think there's a way to force the order in which HomeKit handles the characteristics in a scene). Also, this would reset the volume after each Pause/Play.
from homebridge-zp.
Hm, I haven't had the issue since posting this. I believe it was related to the fact the when the Sonos is first added and turned on, its default was to play at 100, however, once adjusting and turning off and back on, the volume reverts back to its last state. It seemed like a bigger issue to me at the time since I had added and removed homebridge from my Home multiple times while tweaking it, resulting it it always turning on to 100.
Thanks for your awesome work on this! It's a really great addition to Homebridge!
This issue can be closed.
from homebridge-zp.
I would like to request that this feature be implemented. My Sonos is on my desk and I usually have it <10% volume (loud enough for when I'm studying or something), and having the max be 100% has led to me accidentally blasting music. A maxVolume config parameter would be great, and also a poweronVolume one too, so I can change volume, THEN play my music.
Thanks!
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.