-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
volume_change check for supported_feature volume_set #84
Comments
Hi @Sennevds, Thanks for your feature request. I will be adding this for the next release. However, I will be using a FeatureSupport class that I already have for this. I will let you know once it is ready for you to test. Thanks :) |
Perfect. That's the reason I didn't make a pull request. Hadn't had the time to check-out the complete code. The reason I needed the change is because I'm using a ir remote to send commands so set volume isn't supported. |
Will the |
Not always(for me no) I think it's best to check if the property exists and has a value(I checked but it's not registered as a supported_feature otherwise you could check that) |
I asked this because ControllerX runs a loop when holding the button until a release action has been fired or the volume is at its maximum or minimum point. Therefore, if I cannot read the volume, then I will not know the volume to then stop the loop if needed. For security reasons, the best will be to use the hold action if the volume_level is available, otherwise only the click action can be used. What do you think? Otherwise, if we allow the loop to run without having a stop condition than the release (which might not fired for any reason) it will stay in an infinite loop. |
Hmm how do you handle the remote from Ikea that you turn(E1744 and ICTC-G-1) because for a remote with buttons it would be okay I think to press multiple times. Maybe a sort of time-out value? |
You are right. Those controllers do not have an option for that. What I will do is to set maximum loops to run, so if after N loops did not stop, then, I stop the loop. |
I think that's the best solution. Now I'm thinking do the round controllers don't have a start and stop signal? I'm going to check that tonight. Because as long as I'm turning the controller the volume should go up no? |
Hi @Sennevds, Yes, they do. They send a signal when starting the rotation and send another one when the rotation is finished. |
Hi @Sennevds, I just added this feature request in the Cheers, |
Super will try it tomorrow. |
Looks like it works. sidenote the dimmer switch from ikea (ICTC-G-1) doesn't have a stop event in deconz. It has 4 events:
|
Interesting.. that it does not have a stop action like z2m and zha does. I will add support to this controller for deconz, but instead of using the |
Feature added in ControllerX v2.8.0 |
Feature Request
Is your feature request related to a problem?
I'm trying to use your app with a custom media player I made (https://github.com/Sennevds/media_player.template) where I use IR commands to control my receiver. Your app uses the service volume_set but that isn't supported in my case. Instead it should use the volume_up and volume_down service
Describe the solution / feature you'd like
I've checked your code very fast(so probably overlooked quiet few things but maybe if you create a check in the volume_change to check for the supported features volume_set and if it's not supported use the volume_up or down like this:
The text was updated successfully, but these errors were encountered: