(Updated) Efergy 2.0 (Connect)


(Anthony S.) #1

What it does!
The app will connect to Efergy servers and generate an Authentication Token and then create the child Device in SmartThings.
Once that’s done the app will handle the refreshing of the data from Efergy and will update the device roughly every ~30 seconds.

It will also send push notifications if it stops polling data after so many(customizable in the app) minutes. There is also a watchdog of sorts that attempts to monitors its schedules to make sure it’s updating and reschedules after 5 minutes of no updates.

Installation:
I find the easiest way to install and keep things updated is to add the following GitHub repo: tonesto7/MySmartThingsPublic to IDE settings.
SmartApp


Device

Once you have published the app and device type to your account just install the Efergy 2.0 (Connect) SmartApp from the MyApps section on your mobile device.

Note:
If you ever decide that you want to remove the device just uninstall the smart app and it will delete the device.


UK Home Electricity Usage Monitor
Efergy Engage cost meters in SmartTiles.click dashboard?
(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #2

when i try to add the smartapp i just get a “you are not authorized to perform the requested operation” any ideas?


(Anthony S.) #3

Can you open up the Living logging in the IDE and tell me if it gives you any errors?


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #4

doesn’t seem to catch anything, i am getting this right from the marketplace in the android app when i go to smartapps -> my apps -> Efergy 2.0 connect


(Anthony S.) #5

Did you install the Smart Device in the IDE as well?

I just tested on both my iPhone and Android and they are both working and both generated an entry in the Logs upon the first open of the app.


(Stuart Buchanan) #6

Well Done mate,

I hadn’t realised this had been done already, i started writing a device type yesterday and succeeded with tracking the Current power reading, wish i had seen this first as that was a bit of my life wasted i will never get back :slight_smile: anyway, i have noticed a very time bug/feature dependent on how you look at it. I am in the UK and when specifying the currency unit as £’s the Tarriff shows in us cents still.

but many thanks for your hard work

Regards

Stuart Buchanan


Efergy Engage cost meters in SmartTiles.click dashboard?
(Anthony S.) #7

Thanks for the feedback.

Let me know any other issues you find…

It might be my ignorance of the Euro :wink: , but what should the unit be for £?


(Stuart Buchanan) #8

he he, it would be a “p” short for Pence


(Anthony S.) #9

I pushed an update to the smartapp. Just update and launch it once to make the necessary changes


(Anthony S.) #10

Were you able to get this working?


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #11

I apologize Tonesto it wouldn’t let me respond for 19hrs because im a noob. I did get it working, it must have been my company wifi, because i tried it again using the cell network and it went through and allowed me to add the app and login, its working fantastically!!! thank you so much


(Anthony S.) #12

No worries. I’m just glad when something works for others.
I did push a minor update out for the app when you get a chance to update. Just open the smart app and press done.


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #13

Do you know what i would need to change to modify the month cost tile to show todays total KWh usage?


(Anthony S.) #14

That info is there in the lower left corner of the green multiTile…


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #15

Weird its not showing up for me
New photo by ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #16

then again i just noticed the icon isnt show up either :frowning: hmmmm


(Anthony S.) #17

yeah i guess you’re right i just checked my android device and it’s not there or the icon. Even though the icon shows under the things list.
The android client is not up to speed with the iOS yet in terms of tile support. I thought the last build for android fixed this but apparently did not.


(Anthony S.) #18

If you update the device type with the latest code from github i fixed this issue for you. Well not fixed but added the tile to the page


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #19

you’re a gentlemen and a scholar, thanks for adding that tile :smile:


(ᵇᶥᵍ ШΞΒȘГẬŚ (Webstas)) #20

For some reason the todays usage isn’t calculating correctly either is the monthly usage.

ex
it shows my usage today is 47.19KWhrs but efergys site shows it as 19.30KWhrs
and my month shows 714.6KWhrs and efergy shows 688.92KWhrs

the current usage is spot on though