-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[generacmobilelink] Initial Contribution #9322
Conversation
Very cool! I finally might have a reason to get MobileLink on my standby generator. |
Happy to hear someone else might find this useful then! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! I reviewed your code and here is my feedback.
There are some checkstyle warnings left. You could take a look at target/code-analysis/report.html
.
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Thanks @fwolter for reviewing ! I have finished addressing your comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @fwolter sorry for the last min commit. I had a cheap hack to get around the API returning a 401 without the correct headers that caused the synchronous use of jetty (which most of us use) to throw a generic execution exception. I was basically parsing the exception message for specific string since i did not have a response code at that point. This worked, but was bothering me :-) I implemented this again using the asynchronous version along with a compatible future which allows me to properly catch this condition. |
.../openhab/binding/generacmobilelink/internal/discovery/GeneracMobileLinkDiscoveryService.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...rg/openhab/binding/generacmobilelink/internal/handler/GeneracMobileLinkGeneratorHandler.java
Outdated
Show resolved
Hide resolved
.../org/openhab/binding/generacmobilelink/internal/factory/GeneracMobileLinkHandlerFactory.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
Thanks for the feedback @cpmeister ! I have addressed your comments in the latest commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what little I know about generators, I know that they must be run periodically as part of their maintenance. Is it possible through the mobile link to turn on/off the generator remotely so that such maintenance is scheduled through openHAB?
.../org/openhab/binding/generacmobilelink/internal/handler/GeneracMobileLinkAccountHandler.java
Outdated
Show resolved
Hide resolved
.../org/openhab/binding/generacmobilelink/internal/handler/GeneracMobileLinkAccountHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.generacmobilelink/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
I have addressed your comments in my latest commit, thanks.
The API allows for read only access, their mobile client is read only as well. |
…his allows the Generac line of generators using their MobileLink cloud service to be monitored as things in openHAB. Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
…specific error from jetty Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
Signed-off-by: Dan Cunningham <[email protected]>
aff25a9
to
3e54836
Compare
Updated for 3.1.0-snapshot |
* This is the initial contribution of the Generac MobileLink binding. This allows the Generac line of generators using their MobileLink cloud service to be monitored as things in openHAB. * bump to 3.1 Signed-off-by: Dan Cunningham <[email protected]>
* This is the initial contribution of the Generac MobileLink binding. This allows the Generac line of generators using their MobileLink cloud service to be monitored as things in openHAB. * bump to 3.1 Signed-off-by: Dan Cunningham <[email protected]> Signed-off-by: Joseph Hagberg <[email protected]>
* This is the initial contribution of the Generac MobileLink binding. This allows the Generac line of generators using their MobileLink cloud service to be monitored as things in openHAB. * bump to 3.1 Signed-off-by: Dan Cunningham <[email protected]>
* This is the initial contribution of the Generac MobileLink binding. This allows the Generac line of generators using their MobileLink cloud service to be monitored as things in openHAB. * bump to 3.1 Signed-off-by: Dan Cunningham <[email protected]>
This is the initial contribution of the Generac MobileLink binding. This allows the Generac line of generators using their MobileLink cloud service to be monitored as things in openHAB.