Pity this stopped working, but as you said, its a web-scraping API so will constantly be breaking.
I guess the best bet for now is to get one of the official Rainforest Automation devices from BC Hydro itself - looks like there are already components for those that allow realtime live power usage monitoring, so can be stored in HA with full history etc too.
I just joined the hydro home trial and ordered the hub thing. It looks like Ohio rolled out the same hub and some people there got it integrating with HA maybe, so that could be a path. Something is accessing data to come into the hydro home app, so that could be a thing too …
Signed up for the “trial” app account. Waiting for data to be populated. Looks as if without the hardware ( hub ) the app will show day based stats 1 day in the past. With hub looks like real time is able to be accomplished
Basic Charge: A small, daily amount that partially recovers fixed customer-related costs, including customer service channels, metering, billing, payment processing, collections, and distribution system costs that are customer-related (electrical lines and transformers).
$0.2077 per day.
Energy Charge Step 1
$0.0939 per kWh for first 1,350 in an average two month billing period (22.1918 kWh per day).
Once you have the home bridge set and you binded to your meter, pretty much what @Courtenay_Watson has works!
I did it a bit different, I have Node-Red, so used Node-Red to update the live usage in an input_number helper, then pretty much did what is above also you need to add utility_meter sensors.
Anyway not sure if anyone is interested, but I can put a guide if anyone likes! feel free to tag me if you need more help.
A tip for anyone setting their Energy Bridge device… Place it as close to the meter as possible and leave it alone during the pairing process. I was expecting mine to pair within an hour - it can take much longer. I ended up trying the “Remove Smart Meter Bind” and “Complete Factory Reset” options with no pairing changes. Don’t try any of those options - there’s no need.
Support told me to leave it overnight and if it fails to pair that they’ll manually issue a bind request.
My Energy Bridge settings tab is currently stuck with a red X with a rotating circle around it and no ability to enter the “Smart Meter Connectivity” menu. My Energy Bridge ZigBee Install Code stayed the same even after a “Remove Smart Meter Bind”.
I’ve passed on the tip to “just leave it alone to pair” to my friends who are receiving their hubs any day now.
I’ll move it to my server rack and put it on Ethernet after it’s paired.
I just joined the HydroHome trial and set up my Energy Bridge recently. I am able to see my power usage in the “HydroHome” app, but I really want to integrate the Energy Bridge with Home Assistant.
I saw the sample config @Courtenay_Watson , but I couldn’t get Home Assistant to pick up the Energy Bridge. I see the sensor.bchydro_energy_bridge entity in Home Assistant (I had to add a unique_id: entry because HASS complained about that entity), but it shows no useful information.
Was anyone else get the power readings from the Energy Bridge into Home Assistant working? Any tips or pointers would be greatly appreciated
Under the configure menu of the integration, listen to # and start listening. You should get messages like { "time": 1643912882895, "demand": 2675 } every second or so. If you are not getting messages, something is wrong with your above config.
Add two new sensors to your config.yaml:
sensor:
#bchydro energy bridge
- platform: mqtt
name: "BCHydro Electricity Consumption"
icon: mdi:transmission-tower
state_topic: "event/metering/summation/minute"
unit_of_measurement: 'kWh'
# the Energy Bridge returns "Watt-minutes" every minute in the "value"; convert it to kilowatt-hours
value_template: "{{ value_json.value | float / 60000 }}"
# the "time" in the message is a Unix-like timestamp (in milliseconds) of the start of the last reading
last_reset_value_template: "{{ now().fromtimestamp(value_json.time / 1000).replace(tzinfo=now().tzinfo) }}"
device_class: energy
state_class: total
- platform: mqtt
name: "BCHydro Instantaneous Demand"
icon: mdi:transmission-tower-export
state_topic: "event/metering/instantaneous_demand"
unit_of_measurement: 'kW'
# the Energy Bridge returns watts, convert it to kilowatts
value_template: "{{ value_json.demand | float / 1000 }}"
device_class: power
state_class: measurement
Add BCHydro Electricity Consumption as your Grid Consumption value in the Energy dashboard.
If you want a card for instantaneous demand, I am using the custom mini graph card with this config:
Hello, I also have a BC Hydro HydroHome hub as part of their trial. I will try the tips above to see if I can connect it to Home Assistant.
The hub/trial also includes some Sinope Zigbee smart thermostats that interface with the HydroHome hub. I’m just wondering, has anybody else been able to successfully interface HydroHome-connected Sinope thermostats to Home Assistant?
I have solar power along with the Hydro home so I had to makes changes to the entities to handle the scenario of sending power back to BC Hydro.
My sensors look like:
# bc hydro energy bridge
- platform: mqtt
name: "BC Hydro Electricity Consumption"
icon: mdi:transmission-tower
state_topic: "event/metering/summation/minute"
unit_of_measurement: "kWh"
# the Energy Bridge returns "Watt-minutes" every minute in the "value"; convert it to kilowatt-hours
#value_template: "{{ value_json.value | float / 60000 }}"
value_template: "{% if value_json.value | float > 0 %}{{ value_json.value | float / 60000 }}{% else %}{{ 0 | float }}{% endif %}"
# the "time" in the message is a Unix-like timestamp (in milliseconds) of the start of the last reading
last_reset_value_template: "{{ now().fromtimestamp(value_json.time / 1000).replace(tzinfo=now().tzinfo) }}"
device_class: energy
state_class: total
- platform: mqtt
name: "BC Hydro Electricity Return"
icon: mdi:transmission-tower
state_topic: "event/metering/summation/minute"
unit_of_measurement: "kWh"
# the Energy Bridge returns "Watt-minutes" every minute in the "value"; convert it to kilowatt-hours
value_template: "{% if value_json.value | float < 0 %}{{ value_json.value | abs | float / 60000 }}{% else %}{{ 0 | float }}{% endif %}"
# the "time" in the message is a Unix-like timestamp (in milliseconds) of the start of the last reading
last_reset_value_template: "{{ now().fromtimestamp(value_json.time / 1000).replace(tzinfo=now().tzinfo) }}"
device_class: energy
state_class: total
- platform: mqtt
name: "BC Hydro Instantaneous Demand"
icon: mdi:transmission-tower-export
state_topic: "event/metering/instantaneous_demand"
unit_of_measurement: "kW"
# the Energy Bridge returns watts, convert it to kilowatts
value_template: "{{ value_json.demand | float / 1000 }}"
device_class: power
state_class: measurement
This makes it so one sensor only handles positive numbers and another for negative numbers (selling power.)
Then you can set it up like this on the energy panel:
I just signed up for the HydroHome trial (had never heard of it before seeing it on this HA forum, shouldn’t BC Hydro be telling us about these things? ) but no data seems to be populated yet.
Is it better to get a HydroHome Hub ($50) instead of the Rainforest Eagle 200 ($120) to get live data into HomeAssistant? How do the apps compare? Or would it be better to just get clamps for the breaker panel?