I have a spiffy Generac Generator which I can monitor stats via mobile… I saw that there was an openhab binding for #generac-mobilelink-binding and got all excited… unfortunately after installing the binding and configuring the whopping 3 settings ( mobilelink username, password and refresh interval) all I seem to get is Status Offline Communication error.
I’ve truncated it here as I have 1 line every minute in my logs for this… note the logs are all openhab.event.ThingStatusInfoEvent and nothing from the binding itself even though I show
org.openhab.binding.generacmobilelink │ TRACE
When I execute a log:get…
Is it just terminally broken or where can I find the code for the binding to debug further and maybe, just maybe contribute some error, warn, info, debug and trace logging into the binding if nothing else…
Mrgh, found my own answer… found the code… it hardcoded the site https://api.mobilelinkgen.com which is a non-entity according to DNS…
grumble… now to go chew upon Generac for a new link/api!
It could be recoded, but it would be complex as Generac eol’d the api and took the test start/stop capabilities away from the owners because they were seeing ‘excessive cycling’ via the API and web interfaces both
Yeah, they also switched to using Microsoft azure as identity provider and i never got around to reverse engineering the login process (its quite complicated !) . This has been on my radar to fix for sure. I’ll see if i can find some time this weekend to look at it.
@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 .
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.
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:
Remove any existing generac generator things (you can leave the account thing)
Uninstall the existing Generac binding if installed
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:
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, 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.