OH3.1 Generac MobileLink Binding

@digitaldan
Hi, Did you ever find any time to update this binding?

I also Downloaded and was hoping to use it as well.
Even without the test functionality it would be nice to port Genie status and other items into good ole openhab .

Chiming in as I intend to get a Generac soon and would love to monitor it via Openhab.
So the binding is non-functional as of right now?

I don’t have the need for test functionality, just status monitoring would be fine.

I have not fixed it, its been more difficult then i anticipated, but i have not looked at it lately. I’ll put it on the list of stuff to look at this weekend.

Greatly appreciated.
I suppose there are not that many people who would want to use this binding, but those there are, they most certainly do :wink:

Then you’ll either have to hammer Generac or hack the signals and figure out a way for openHab to talk to it locally. Generac changed the hostname of the cloud login service and shut off the API access… rendering this plugin null and void

I have a new version of the binding working. FYI the API is very different, which is not a bad thing, but it does mean if you are currently using the binding, you will need to remove the generator thing and recreate it (which is done automatically by discovery anyways)

to install:

  1. Remove any existing generac generator things (you can leave the account thing)
  2. Uninstall the existing Generac binding if installed
  3. Drop the new jar in your addons folder

If the binding won’t start because of a missing requirement , you may need to install the jsoup dependncy from the openhab CLI like:

bundle:install https://repo1.maven.org/maven2/org/jsoup/jsoup/1.14.3/jsoup-1.14.3.jar

I can’t remember if thats needed when using the local addon folder

I have updated the README which the new channels.

Github Release JAR
README Page

Let me know how it goes.

2 Likes

Hi
@digitaldan was all excited went out pulled down the jar dropped into add on folder ran the bundle install for jsoup
Now getting a different unresolve.
Unresolved requirement: Import-Package: com.google.gson; version=“[2.9.0,3.0.0)”
Running on Open 3.4.0
Clean build did not have previous version generac binding and just a few simple bindings running.
Any Thoughts or ideas on what else?
Update:
Pulled down a copy of 4.0M1 and it seems to run fine on that version logs in and pulls all the data !
Awesome Thanks @digitaldan

@digitaldan, do you think you can compile a version for OH3.4?
I’m not willing to move to OH4 beta, and I’m getting my generator installed next week…

Thanks!

You can try this one, although i have not run it yet

1 Like

Thanks!

I’m currently not sure if it works.
It is installed and running:

292 │ Active │  80 │ 1.14.3                 │ jsoup Java HTML Parser
293 │ Active │  80 │ 3.4.3.202303182221     │ openHAB Add-ons :: Bundles :: GeneracMobileLink Binding

but I can’t see the binding when I try to add a “thing”, it’s not in the list of bindings.

Try the link again to download again, there was a missing binding config file in the build.

this 2nd version works perfect on 3.4.0 and 3.4.2 login fine finds generator retrieves all items.
Awesome again @digitaldan Double thanks !!!

@digitaldan, thanks for the new build.
I now see the binding and can add the bridge thing, but the api doesn’t seem to like it:

Thing 'generacmobilelink:account:ced1bbc17f' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): API returned status code: 204

Credentials are correct, I’ve verified by logging in with them on a browser.
I don’t have a generator in the account yet, so that may be the reason for this as 204 usually stands for “no content”.

I’ll know more next Friday when the generator is installed.

@Tron
I think you will be fine once you have a Generator in your account
I got this After I saved in setup
2023-03-18 21:04:17.441 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘generacmobilelink:account:7d70******’ changed from UNKNOWN to ONLINE
2023-03-18 21:04:17.465 [INFO ] [openhab.event.InboxAddedEvent ] - Discovery Result with UID ‘generacmobilelink:generator:7d7*****:8*****’ has been added.

and this after I added a item.

2023-03-18 21:05:20.301 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘MobileLink_Generator_32kW_Status_Label’ changed from NULL to Ready to run.

This is on openhab 3.4.0 version with last binding @digitaldan posted.

1 Like

Thanks for the feedback, i’ll put that check into the final PR for the binding. glad it seems to be working for everyone.

1 Like

Generator installed and works in OH.
Thanks a lot for the binding!

It seems the channels have changed quite a bit from what the binding page shows, and as far as I can see they’re all read-only. But just to monitor the generator, that’s totally sufficient.
I’ll just have to figure out which channel gives me what exactly…

I just added this openHAB and it reports on line and green. Now to set up displays for it.

Thank you!

1 Like

Hmm, seems like the last OH3 update may have broken it.
I currently run OH 3.4.3-2 and the org.openhab.binding.generacmobilelink-3.4.3-SNAPSHOT.jar

OH3 shows both the account and the generator thing as uninitialized, and I don’t even have a button to disable and re-enable it.

Both things show:

Status: UNINITIALIZED
HANDLER_MISSING_ERROR
Handler factory not found

The binding doesn’t even show up anymore when I try to add a thing, so I suppose it got incompatible with OH 3.4.3-2.

Logs show:

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.generacmobilelink [236]
2023-05-05 10:13:01.137 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.generacmobilelink-3.4.3-SNAPSHOT.jar

You probably need to install Jsoup again , see my original instructions OH3.1 Generac MobileLink Binding - #11 by digitaldan

Thanks, I’ll check if that is still installed. If so, I’ll probably drop that into the local addons folder so it can’t get away next time.