App and driver developed for the myenergi solar related products (hub, charger, solar diverter). At the moment the only driver in existence is the eddi. The others are on my TODO list but until I actually own the devices it is unlikely I will get the incentive to create them.
Also on my TODO is the creation of a manifest for the Hubitat Package Manager
This is my first app/driver combo from scratch so all feedback very welcome. In particluar, I know that the way I have manipulated some of the maps embedded in lists that come back from the JSON responses could be done better. If you fancy having a go at making the code a bit more efficient I would love to gain some knowledge in this area.
I was just thinking about this this morning actually. I don't have a Zappi or a Harvi but I am willing to give the driver a go if you can be patient (I have a lot on at the moment) and you are willing to test!
The concepts should be quite similar and a lot of the code should be reusable, from what I can tell
Can you do something for me - run the app and tell me if the other devices are detected. You won't be able to install the driver but they should at least populate as options in the app setup pages
@VeloWulf , thought I would give this a try. I have a Zappi and Hub with monitors and was hoping to pull info from them. first issue is that I loaded the app with HPM. then went to configure with username and password.
got these errors straight away: app:1392022-08-17 10:23:11.657 am errorgroovy.lang.MissingMethodException: No signature of method: java.net.UnknownHostException.getResponse() is applicable for argument types: () values: []
Possible solutions: getMessage() on line 240 (method devicePage)
app:1392022-08-17 10:23:11.472 am errorUnxpected succesful call to director server - please troubleshoot
I've just had an MyEnergi Eddi installed with our new PV system so this app would be great. I've installed the app and driver but get the following error when trying to set up the app after adding my username and password.
Error: No signature of method: java.net.UnknownHostException.getResponse() is applicable for argument types: () values: [] Possible solutions: getMessage()
hey @user2186 , sorry for the delayed reply. I have just returned to the code because I noticed that this was failing myself. It looks like myenergi have changed the way that the director server responds to initial requests. It used to throw a 401 error (and I coded for that) but it now responds with a 200 (success) response. I have now catered for both because the documetnation that I can find on the API doesn't i ndicate one way or the other - it actually says that both might happen.
Give me 24 hours and I will see if I can get the new code uploaded for installation
Note: the zappi driver is still WIP so please don't select the zappi in the application just yet. I am working on this now.
hi @garyburchell, apologies for the late response. You may have figured this out by now but the reason it is failing is that you have put your credentials in wrong. The username that you need to use is the hub serial number and associated password, not your myenergi portal login.
Note: you may still get a failure because of the change to the way that the myenergi director server responds (see above post to @user2186 ). If it does fail please stand by - I will have updated code uploaded soon.