Giter Site home page Giter Site logo

Request- Volume limit about homebridge-zp HOT 3 CLOSED

mbeck94 avatar mbeck94 commented on May 30, 2024
Request- Volume limit

from homebridge-zp.

Comments (3)

ebaauw avatar ebaauw commented on May 30, 2024

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.

mbeck94 avatar mbeck94 commented on May 30, 2024

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.

jevnikar avatar jevnikar commented on May 30, 2024

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)

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.