-
Notifications
You must be signed in to change notification settings - Fork 17
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
homebridge-multiswitcheroo #562
Comments
✅ Pre-checks completed successfully. |
Hi @iSteve-O Out of interest, could this plugin be considered a replacement for the already existing |
Hi @bwp91 sort of but not really. Sort of in that mine does the same thing, but not really in that mine only does GET type requests currently, but does live status. Switcheroo does not have live status, but it does POST, PUT & DELETE as well. I am slowly working on adding those other types of http requests but it does what I need already. When I do add those other types, then it will be a full replacement for Switcheroo, I think, plus live status polling. I built this because HTTP-Switch doesn’t have multi-switches, and Switcheroo doesn’t poll for status. I only needed GET so I didn’t intend to be a full replacement at first. To be clear I can’t commit I’ll ever release a version that does those other types of requests, but I have started working on it. Sorry for the storybook reply! Have a great day! |
Thanks! A simple/empty config of: "accessories": [
{
"accessory": "MultiSwitcheroo",
"name": "Test",
"pollingInterval": 3000,
"_bridge": {
"username": "0E:D9:DC:A2:AD:91",
"port": 55285
}
}
], is crashing homebridge:
Please check that |
Hey @bwp91 I just pushed new version 3.0.2 to fix this issue. I tried it with that crazy config and it no longer crashes HB. I appreciate your help! |
Because my original v1.0 had 2 types of accessories available. I fundamentally misunderstood that accessory plugins should only expose one accessory type, so with the 2.0 version I eliminated the “switcheroo” single switch accessory. I just wanted it to be very clear to anyone updating that they would lose the switcheroo single switch functionality and that they should instal http-switch to get it back. |
So is your plugin dynamic-platform type now? |
No, it’s still an accessory type plugin, but it used to have a “switcheroo” & “multiswitcheroo” accessory type. You can see the original version here. Now it only has 1 type of accessory, “multiswitcheroo”, but is still an accessory type plugin. |
When I check the link to your github plugin page in your original post, I can see that a config.schema.json is present, but when I check the One would expect that npm releases are from the main branch, is this true in your case? |
No, I’m sure I’m not doing this properly. The I do have the package files of each version configured accordingly so the links point to the proper branch for each. I really need to read into repository management. It’s not something I ever considered before this.
|
It looks like you are using the github releases and tagging What one would normally do is create a feature branch (for example The github tags allow you to go back to how the code was at any time. If you are not familiar with git commands then I would definitely recommend the github desktop app. If you are on discord I am happy to guide you towards I guess the norm. None of these comments are meant to suggest you are doing anything wrong. It's just that for any user who wants to install the plugin and wants to have a look at the code beforehand, they would assume that the newest npm version of the plugin would equal the main branch in the corresponding github repo |
Yeah, you’re absolutely right about that and that’s everything I was doing except the final merge. I like having full working examples of the code, for now, until I’m fully comfortable using tags and all. I have merged the latest version to the main branch, and the next time I publish an update to npm I’ll be sure to merge first so the main is always latest & fix all the links so they point back to the main. This all makes so much more sense now and I feel kind of dumb. I was changing all the links with each release and all to point to the new branch, but if I just publish from the main I don’t have to worry about any of that. So simple and I just missed it. I thought to publish on npm the code for each version had to be on GitHub, but that doesn’t make any sense now that I think about it. Anyway, I understand, have done it, and will do going forward. Main is main. I really appreciate you taking the time & offering to help. |
When I install the plugin again and immediately click save on the plugin settings screen that appears, I get this message in the log:
I guess this is because there is no default value for the I wonder if it is worth having a Also if the first field in the config screen must be this value, I wonder if it could just be hidden instead. And this is something to maybe consider, certainly not a job for 'today'. I could see two options here, the first would work, the second I just thought of but I don't know if it would actually work.
|
Everything Looks Good! |
Congratulations! Your plugin has been verified. You can now add the Verified by Homebridge badge to your plugin's README:
Your plugin is now also eligible to display a ❤️ Donate button on its tile in the Homebridge UI. See https://github.com/homebridge/homebridge/wiki/Donation-Links for instructions. If for any reason in the future you can no longer maintain your plugin, please consider transferring it to our unmaintained plugins repo. We can take ownership until another willing developer comes along. Don't forget to join the official Homebridge Discord server, where plugin developers can get tips and advice from other developers and the Homebridge project team in the #plugin-development channel! Thank you for your contribution to the Homebridge Community. |
Thanks Ben. I’m going to work on this. |
happy homebridge-ing! |
Link To GitHub Repo
https://github.com/iSteve-O/homebridge-multiswitcheroo/tree/OffFix
Link To NPM Package
https://www.npmjs.com/package/homebridge-multiswitcheroo
The text was updated successfully, but these errors were encountered: