Thanks @ymerj, that's another simple solution. I prefer not using delays and rather use different trigger to make it simpler to debug. I also expect that the logic would better turn back to normal in case of hub reboot. But I must admit that I never ran into scheduling problem at bootup and my hub is on UPS.
I see you go down by 5°C, what's you normal temperature. I keep the house to 20° I feel going down to 15° would cause some complaints from the family
My hub is on UPS also and can last 5 days without power so no worries on that side. Normal temp is 20°C but I cheet a bit because I leave 2 rooms on the second floor at normal temperature (with doors close) to relax, watch TV or whatever when I feel the temp goes too low for confort.
@Cramezul I patched together a Gmail apps script from sample code to automate enabling a peak event state on the HE when I get an email from Hydro. Uses MakerAPI to turn a virtual switch on. If there's any interest I can share it.
Here's the script in question. It's pretty dumb as it doesn't check the event date (in RM I assume the event occurs the next day) and doesn't parse the contents e.g. to figure out if it's a morning peak event, afternoon peak event or both (my RM rules assume both).
The thing ran yesterday for this morning's event and I didn't have to lift a finger. I did have to manually cancel the afternoon peak period though.
Now I need to figure out code to change the Ecobee's schedule so that it will start heating earlier to a slightly higher setpoint (I have a hydronic system... perfect for this program ).
OMG! It is easier than i though! I was thinking of how to run an app in HE to poll my inbox, etc... This solution is really simple. Thanks for sharing.
(offtopic) Yeah I find it really elegant that you can essentially map any hub / device / app on the same route. Allows you to think of all your hubs (or all Hubitat units if you're its cloud platform operator ) as one system. MakerAPI provides crude API management (authz) and I could imagine going even further, allowing writing apps that are hub-agnostic, for example by detecting when an endpoint is local and skipping the cloud hop, providing observability / throttling, etc. I've not looked at Hub Mesh/Connect yet but this sort of functionality makes those features obvious.
Nice thread. I wanted to implement some automatic fetching, but to be honest, it is very simple the way I implemented it: simply with 2 virtual switches. One for a morning and one for the afternoon peak events. I flip the corresponding switch manually when it is announced, and then it triggers rules in Rule Machine at specific times
The VSS: things are all Virtual Switch for Scenes. Each switch triggers what I call a scene, which is just another rule in Rule Machine. The rule sets thermostats, shuts off (or turns on) switches, etc.
I installed the HYDROQC integration to my HA and imported it to HE using HADB. It gives several info which are not very usefull but the relevant ones are there.
Yes indeed, Griddy's model was one that actually had more at risk BECAUSE of the structure of the power market in TX.
BUT interestingly, one of the big arguments used to support Smart Meters in many TX municipalities was inconsistently offered after the arguments were won, approvals were granted, and the meters were allowed to be put in.
That is, "giving the customer a break on electricity pricing because you would know exactly how much they were using peak vs off peak". As most know, "Off Peak" power, ESPECIALLY that which is generated between 10pm and 5am, is generally a HALF PRICED commodity.
But instead of all the big players making that a simple Easy Button option for consumers right from the start of the program...they concocted a cornucopia of combo pricing options that made picking providers, plans, and usage profiles very confusing for most folk.
In my mind, the promise of "cheaper power by shifting usage" never came to the market in the straight forward offering it should have. This would have benefited everyone (maybe not the gimmick prone power marketers)....the generators as far as not needing to rush to ramp up capacity, and the consumers ....REALLY getting a deal..... IF they could shift more power use to Off Peak. It's too bad it's not easy to "store" AC Cooling generated at night...for the next bloomin hot TX afternoon!
So in that particular situation, freezer, frige, light etc. does not cost anything to run in winter. The 2 that are wasting are the dryer and hot water. Because both are discarding heat outside.