Skip to content
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

Add Multi-Switch Device #120

Open
iSteve-O opened this issue Jul 26, 2023 · 2 comments
Open

Add Multi-Switch Device #120

iSteve-O opened this issue Jul 26, 2023 · 2 comments

Comments

@iSteve-O
Copy link

Is your feature request related to a problem? Please describe.
I am currently using the plugin to expose 10 switches to the home app that set different volume levels on my audio receiver. These switches would work perfectly in a multi-switch or power strip device, but I can't find any plugins that provide this switch type & also poll the device for status.

Right now, all 10 switches are polling the receiver, and I would like to have a multi-switch with a single status URL so it only needs to poll 1 time to get status of all 10, instead of polling 10 times to get status of each 1.

I tried to use Switcheroo, but it doesn't have any status polling. There are other plugins I can use but none have this polling you have implemented.

Describe the solution you'd like
Create a multi-swtich that has a single base url (host), a single status url, and a status pattern & url string for each switch.

This would cut my API calls down by a factor of 10, and would allow me to poll more frequently to update the switch status more quickly. Right now I am using 30 seconds as my polling interval to not congest my network.

Additional context
I love how well your plugin works, but this upgrade would be amazing & work even more perfectly for me.

I would love to help in any way possible. I would love it if it worked just like a Switcheroo Multiswitch, only with status polling.

I REALLY appreciate your consideration!

@jasonlboggs
Copy link

jasonlboggs commented Sep 6, 2023

You could create a rather simple python app using flask that stores the value locally. Each API query would read the local value and if a specified amount of time has passed, the endpoint could make the real API call to refresh the data locally.

@iSteve-O
Copy link
Author

iSteve-O commented Sep 7, 2023

You could create a rather simple python app using flask that stores the value locally. Each API query would read the local value and if a specified amount of time has passed, the endpoint could make the real API call to refresh the data locally.

I already made my own plug-in to fill my needs & published it to npm. If this sounds like something you’d like, you can install it in the Homebridge ui, just search for “multiswitcheroo”.

I appreciate your reply though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants