Hydro quebec winter credit / peak events

Hello,

I created a new github repo with a bit of code that might interest Quebec users.

This is a simple module to interact with Hydro QC API and get information.

So far I’m interested in getting the next peak event in HA, so that’s what I’ve focused on.

It’s not super advanced and will for now only give you a JSON object like this :

{
 "current_winter": {
  "past": {
   "1641294000.0": {
    "date": "2022-01-04",
    "start": "06:00:00",
    "end": "09:00:00"
   },
   "1641243600.0": {
    "date": "2022-01-03",
    "start": "16:00:00",
    "end": "20:00:00"
   },
   "1641207600.0": {
    "date": "2022-01-03",
    "start": "06:00:00",
    "end": "09:00:00"
   }
  },
  "future": {
   "1641330000.0": {
    "date": "2022-01-04",
    "start": "16:00:00",
    "end": "20:00:00"
   }
  }
 },
 "past_winter": {},
 "next": {
  "1641330000.0": {
   "date": "2022-01-04",
   "start": "16:00:00",
   "end": "20:00:00"
  }
 }
}

As some might expect it’s based partly on the pyhydroquebec (GitHub - titilambert/pyhydroquebec: Get your consumption data from your HydroQuebec account (www.hydroquebec.com)) project but is more focused on winter credit automation as of now.

I hope some might be interested to improve/contribute to make it a bit nicer, i’m open to ideas / PR like include MQTT for instance :slight_smile:

1 Like

MQTT is now included as an implementation example and data about winter peak events are better (thanks to the discussion we had with few people).

This will improve with contribution so if you’re in QC and are on Flex D or Winter Credit tarifs, share your thought / ideas.

The other aspect is the consumption information, however that is an entirely different topic as the data is delayed and is thus not compliant with HA energy (if I understood other topics correctly)

2 Likes

I just want to let people know that this project has been moved and greatly improved on since this initial post. The project supports the following:

  • Hourly Energy consumption sent to the Energy Dashboard
  • Winter credit information and triggers, including a blueprint
  • General account information

We provide both a docker image (hydroqc2mqtt) and a Home-Assistant Add-on

You can find more info here : https://hydroqc.ca