SmartThings Community

Griddy Wholesale Energy Price

For anyone using Griddy as their electricity provider, I’ve put together a basic SmartApp / Device Handler to display the current wholesale electricity price. The device handler is implemented as an Energy Meter since there are no other capabilities for representing something that is monitoring a price. The idea is to be able to write routines / rules / CoRE pistons than can control your smart devices in reaction to the current electricity price.

The source code is located here:
Device Handler

SmartApp

6 Likes

Very cool. :sunglasses:

Thanks for sharing, your code could be helpful to others who want to know how to make a tile with data from the web.

2.1ct per KW/h? That is insanely cheap (hello from Hawaii :<)
edit here it’s 28ct before fees etc…

1 Like

Hello from Texas where energy is cheap. 2.1ct is just the energy cost. There is still delivery, taxes and fees that make it more like 5ct / kWh.

1 Like

2.1 base that is NUTS . this is Texas?

great concept - enabling peak shaving at the residential level. Like changing the setpoint based on price - you could produce a fuzzy-logic score set by price history and comfort.

Low wife acceptance factor

Came across this after trying the new Griddy IFTTT integration which doesn’t seem to be stable (honestly nothing I do in IFTTT seems to work as I want). I’ve been able to pull the price into my app but don’t see anyway to use the price as a trigger to turn on/off lights, AC or pool pump. As I’m just getting into this there may be an easy reason why I haven’t figured this out but just asking if this has been taken to the next step to be used to control?

p.s. Love using Griddy and keeping my all-in-price below 8cents. Working now to bring it lower by turning off High power items during the power spikes.

1 Like

neato. You are one of the few. What is your utility service area?

Good job thinking about peak shaving.

I’m in Houston and an early adopter of Griddy. I’ve been after Griddy for IFTTT applet feature and I currently have support ticket in with them as i can’t get IFTTT to trigger on price. My plan is to have IFTTT trigger when cost per KWH goes over 0.10$. A ewelink sonoff device to on/off my pool pump and a couple of Zooz Zen switches attached to my AC units. The power spikes I normally see last no longer than 30 minutes so shutting down my high power items should keep my costs low without impacting the family. When cost per KWH falls below 0.10$ then turn everything back on. As IFTTT wasn’t working properly I found this excellent code to pull Griddy into Smartthings with the hope i could trigger off of the energy meter. At this point it doesn’t work that way. (at least not yet)

2 Likes

Experimenting with Trent’s code. Changed in DeviceHandler the type to be power from energy. Everywhere in the code where it said energy I changed to power and the units to w from c. It reads the cost from Griddy as watts instead of cents now. Ie. Current price is 1.818W (s/b cents). Now using the energy monitor smartrules I can say when the Watt usage is above 10W (10c) then turn off…

Experimenting but working so far.

To be clear – the hard work was by Trent. Thanks Man for the foundation.

Interesting tweak! I am also considering switching to WebCore for my rules instead of IFTTT. I also wouldn’t mind tweaking this to show actual price versus just the wholesale price per kWh.

Hi trentfoley, I am also in Texas and use both of your SmartApps, Griddy and Nexia Thermostat Manager. Awesome work. Unfortunately, I am unable to turn the Thermostat on/off with Griddy through IFTTT. I can see the Thermostat on/off switch but I believe it controls the zwave repeater (not sure)? Is there any way to tweak the code to make the Griddy/IFTTT integration turn the Thermostat on/off? Thanks.

Hey Trent. I posted a reply on your Tesla integration thread as well, but I’m thinking this may be the better place to ask the question. I have your Griddy SmartApp and device handler working along with your Tesla Connect SmartApp and device handler. Both are working flawlessly and I can see price updates and can control basic Tesla functions. What I’d like to do is stop charging my Tesla if prices surge past a certain threshold or start charging it should they drop below something like 1¢/kWh. Is that possible using the Tesla Connect integration? I can’t see an action that I would call to start or stop charging.

Thanks for all of your work on both projects and in advance for any insight you can provide on this.

I actually got this figured out using webCoRE. There’s no way to use the built-in SmartThings automation to execute the “StopCharging” action, but webCoRE does it pretty easily. Now, whenever prices spike above 5 ¢/kWh, my webCoRE piston is triggered and it stops charging my Tesla and sets my Nest thermostats to a high temperature. The only other thing I’d like to be able to stop during power price spikes is the pump on my pool, and I think I’ll be able to automate that as well, since it’s all managed by a Jandy iAqualink system. Thanks again for the Griddy and Tesla SmartApps. It made the process pretty simple.

Can someone please direct me to the step by step how to install such a “smart app” and perhasp suggestions how to enable core scripts, e.g. if price increases above x then turn off AC.