-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add new attribute: previous_volume
#2766
Conversation
This saves the current volume level as previous_volume before changing it.
for more information, see https://pre-commit.ci
Pull Request Test Coverage Report for Build 12411900097Details
💛 - Coveralls |
Reverted line 476
for more information, see https://pre-commit.ci
@alandtse Any idea what's triggering codespell exit code 65? |
You can't read the log? It literally points out the misspelling.
|
Duh! I see it now plain as day now that you pointed it out! |
FYI, I just completed creating a new service to restore the previous volume level and will be my next PR to supplement this one.
|
I don't know where else I can post for your feedback so here goes... I also have a somewhat major revision re: I originally was going to separate binary_sensors/lights/sensors/switches but I may just leave them in selected_devices so that will need cleanup. The new code uses a flag for
|
And one more... I have revised my
Before I submit that, I'd like to try and figure out a way to make them user configurable. Most of the requests (for me) are fine but the |
@danielbrunt57 thx a lot for keeping the project alive. Does this feature also work for storing the music/stream volume before an announcement? I am heavily using announcements and have made a script which stores the volume of current playing media and restores it after it. Would be nice if this would get easier with an addition like this. |
Yeah, i am using volume_set, here is my script, now modified to use your new "previous_volume" attribute:
All is working great, thanks a lot for this addition. Maybe you could take insparation by the script above :-) |
See PR #2773 |
thx a lot for the two PR's "storing last volume" and "service to restore". |
The problem with your request for "icing" on the cake is that one of the ingredients for that "icing" comes from a different store!
|
@danielbrunt57 maybe we could use "data" for this? Until the core is changed with an volume float? |
@popy2k14 Possibly! I'm kicking that one around and going to try some code in |
That would be really nice! |
I started a new discussion... |
This saves the current volume level in new attribute
previous_volume
before changing the volume level.See discussion #2765