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.
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.
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)
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.
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.