Energy Monitoring with Home Assistant

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Measure how much energy your house is using per day with Home Assistant and some smart home gadgets.
    ❤️ Found this video useful and want to support the channel? I'd love a donation at paypal.me/homeautomationguy
    In this video I cover:
    00:00 - Intro
    01:25 - Measuring electricity usage for the whole home
    02:41 - Setting up the Shelly EM
    03:33 - Difference between Power and Energy
    04:35 - Setting up the Home Assistant Energy Dashboard
    05:17 - How to use the Home Assistant Energy Dashboard
    06:17 - Measure electricity usage for individual appliances
    07:42 - Advanced energy monitoring tips
    Relevant Home Assistant Documentation:
    Integrating Energy Usage: www.home-assistant.io/docs/en...
    Multiple Tarrifs: www.home-assistant.io/docs/en...
  • ХоббиХобби

Комментарии • 81

  • @Gerrit-Max
    @Gerrit-Max 10 месяцев назад

    This is exactly what I've been wanting to set up so I can see our exact electricity use.

  • @davidunwin7868
    @davidunwin7868 Год назад +8

    I love the energy dashboard. I set it up once I got solar installed 3 months ago, and used it to verify the stats in my energy bill just this week. Getting solar installed saved me AU$100 this quarter, and while my energy use from the grid has gone down, my actual energy usage has increased because I now run my appliances (dishwasher, washing machine) when the solar is producing enough power.
    Just remember all these extra devices running, including homeassistant is using energy, and that forms a phantom load that you have to pay for. Using the energy history information I can work out every time my gas heater blower turns on, when the fridge turns on, and what the base-load is. All this info comes from the Fronius integration for my inverter. Knowledge is power (and less energy).

  • @tp-project
    @tp-project Год назад +1

    I took your advice on moving to a NUC from a Raspberry Pi. Was expensive but I am much happier with the performance. A 10th gen I3 with 8gb has speeded up everything and now my lights and switches are working instantly with fewer quirks.

  • @rob1971
    @rob1971 Год назад

    Great video Alan, thank you.
    I need to work on getting my Octopus data into HA in a meaningful way, so I'll be revisiting this when I have time 👍🏻

    • @JamieVids76
      @JamieVids76 Год назад +1

      Look up their CAD, or the Hildebrand Glow 😊

  • @goldraketub
    @goldraketub 9 дней назад

    that was sharp !! very vell done sir thank you !! 🙂

  • @markpalmer9002
    @markpalmer9002 Год назад +1

    3 minutes into the video (which is good so far) but I might find a new electrician. The wires into the Shelley device (IMHO) should not show bear stands, they should be pushed all the way in or better still have bootlace ferrules on them. Ok back to the video.
    Good video and one that will come back to. I'm using the home glow hardware but having trouble getting the information into the energy dashboard, so I'll watch again and try and work out what I'm going wrong.

  • @shawnbenn
    @shawnbenn Год назад

    I love your channel. Great video. I have a question, are there any wired smart home products? I think that wired products are more secure. For example, Why there isn't wired smart bulb? The technology to have entranet over power has been here for many years. I'm looking for any wired smart home products.

  • @MImranIqbalofficial
    @MImranIqbalofficial 5 месяцев назад

    Informative videos 👍. I want to connect my Voltronics Inverter through Serial Interface to HA. Can you provide information regarding that? Thanks

  • @87vortex87
    @87vortex87 Год назад +10

    Watts = amperage*voltage. Voltage is usually between 210 and 253 volts in the EU. More amperage means more watts. X amount of continued watts over a period of time is total usage, where we use kilowatt per hour as a standard, or kWh. And where kilo is 1000, so 1kwh is 1000watts for one hour continuously.

    • @v.6ak
      @v.6ak Год назад +7

      It's not always that easy with AC, as you have apparent and real power. IIUC, amperage*voltage = apparent power, but some watt ratings (probably even the billing) use real power. That's probably also the reason why sometimes watt rating is considerably less than voltage*amperage.

  • @B-a_s-H
    @B-a_s-H Год назад +7

    FYI: If that Shelly EM in that picture (@2:42) is yours then I'd really advice you to start using bootlace ferrules / end terminals on your stranded wires (or even better: use solid core wiring). Connections like these are suboptimal at best and possibly even unsafe.

  • @ambostralian
    @ambostralian Год назад +2

    Is there a place that you post the Configs for your energy consumption sensors?
    I have mine set up with a few smart plugs but they only show the total over all time. I'd be interested to see the yaml for your one that shows today's consumption.

  • @Gowah8
    @Gowah8 Год назад +2

    About 1 year ago I installed a Shelly EM with 50 amp clamps. Recently I purchased a Hildebrand Glow HID which reads directly from the smart meter. Over a 24 hour period, depending on the total energy used during this period, the Shelly total can be up to 5% less than the total directly from the smart meter; less energy used less difference. Also I use the HACS Powercalc add-on for devices that are on all the time with constant energy draw, or for large current devices (e.g. immersion heater) where I can seperately monitor the on off switching via my Genius Hub smart heating setup.

    • @HomeAutomationGuy
      @HomeAutomationGuy  Год назад +1

      Interesting results you're seeing, thanks for sharing!

    • @JamieVids76
      @JamieVids76 Год назад

      How do you have these configured in the energy dashboard? I use the glow and the OVO integration but it adds them together

    • @Gowah8
      @Gowah8 Год назад

      @@JamieVids76 My provider is Octopus. In the Energy dashboard I use the Shelly for electricity and the Glow for gas. But neither gives the correct cost due to the current inability to include a daily standing charge. Consequently, I have developed my own dashboard which contains much more comprehensive info using the Glow input and from several smart plugs and a couple of Powercalc pseudo inputs.

    • @ryansomerville5679
      @ryansomerville5679 Год назад

      @@Gowah8 Just wondering, if your glow is more accurate, why do you use shelly for electricity?

    • @LeiChat
      @LeiChat 7 месяцев назад

      Shelly suggest the EM is accurate to 1%. How does the Hildebrand Glow HID and Shelly EM compare to the smart meter billing?

  • @sundance2005
    @sundance2005 Год назад +1

    Great video but would be nice if you gave a link to the device you used. I'm sure I will find it just makes things easier.

  • @JamieVids76
    @JamieVids76 Год назад +3

    I was going to go the shelly route but for the same price I found the Hildebrand Glow which works over mqtt and brings in unit costs and gas per half hour (I'm with OVO) by linking to my current smart meter via it's CAD, I believe octopus do their own version of this.
    My only problem at the moment is that I have had the OVO integration for ages now, and I want to keep it's history and run it in parallel to my new glow. Does anyone know if this is possible?

  • @fsprtube
    @fsprtube Год назад

    Love the videos and the dashboard. I have an issue i cannot resolve yet. The dashboard time seems 1 hour off. The actual time is e.g. 12:41 and the data is shown to be 11-12 and should be 12-13. the source is an mqtt "timestamp local = 2023-05-30 12:41:51" so this seems to be good. My time setting in YAML is TZ = Europe/Amsterdam. Any idea where to search for a solution?

  • @BadgerBob
    @BadgerBob Год назад +2

    Does the Shelly measure ‘reverse’ current? I have solar, and return excess power to the grid at time. The issue I have with most meters/clamps is that they count the reverse, so I get a completely incorrect measurement (think I’m pulling from the grid, when I’m actually doing the opposite). How are people dealing with this? (My iBoost clamp recognises and measure what’s going back into the grid, so I know it can be done). Sorry for the silly question, I’ve not done any measurements this way I have just been watching the meter and using EM smart plugs.

  • @SondelaConsulting
    @SondelaConsulting Год назад

    Please can you link to the products below that you mention in your video. Also how do you get the Octopus Energy widgit installed ,

  • @87vortex87
    @87vortex87 Год назад +1

    If you want to know how much green energy comes out your electricity socket right now or any moment, use the Co2signal integration in home assistant

  • @1234andrew1234
    @1234andrew1234 Год назад +1

    Thanks for the video! i noticed at the end it looks like you are using signal to send notifications. It would be super helpful if you could take a video tutorial, as there aren't any others on youtube 🙏🏻

    • @HomeAutomationGuy
      @HomeAutomationGuy  Год назад +2

      Ooooft, one day I will tackle this. It's such a niche topic, and such a pain in the neck to set up, that it would make for boring viewing! I'll add it to my list to make a video for in 2023!

    • @1234andrew1234
      @1234andrew1234 Год назад

      @@HomeAutomationGuy Explains why there aren't any videos! 😅 Looking forward to the 2023 series in any even!

    • @1234andrew1234
      @1234andrew1234 Год назад

      @@HomeAutomationGuy That explains why there are no videos! 😅 Looking forward to the 2023 series in any event!

  • @MVE200
    @MVE200 Год назад

    How do you account for your daily standing charge for both electric and gas?

  • @dwassortedmedia
    @dwassortedmedia 2 месяца назад

    Thank you for posting this I was not aware these products from Shelly existed! If needed would a user be able to install these for a single device that has no input where say a smart plug could be implemented? I am mainly looking to have my hot water heater monitored

    • @HomeAutomationGuy
      @HomeAutomationGuy  2 месяца назад

      Yep, that's a perfect use case for them. I use them to monitor the amount of power my solar is generating, and how much my induction stovetop is using.

  • @DDC251992
    @DDC251992 Год назад

    could you share the template code to monitor energy and watts per day that you explain at the end of the video'?

  • @DominikZalewski85
    @DominikZalewski85 Год назад

    Great video. I'm going to get shelly :) I'm octopus go faster tariff, do you have to do anything extra or HA will fetch my current unit price automatically and adjust the cost accordingly ?

    • @HomeAutomationGuy
      @HomeAutomationGuy  Год назад

      Once I added the Octopus integration it seems to have kept the tarif up to date on my behalf

  • @Dutch79
    @Dutch79 Год назад

    You might also consider a smart thermostat (like a TADO).

  • @maciejcymerys191
    @maciejcymerys191 Год назад

    in configuration.yaml when making themplate at 9:10 your code has the command "state:", that does not work for me, it throws an error straight away. any ideas?

  • @jardelainen8278
    @jardelainen8278 Год назад

    energy monitoring is hot topic for us in the Europe now

  • @TheDropForged
    @TheDropForged Год назад

    What was that redacted part? I would also like to receive notification on my phone.

  • @bartverwijst1
    @bartverwijst1 Год назад +1

    I'm about to move into a new flat in the UK, we're doing renovations now so it's the perfect opportunity to get this stuff sorted. I wonder, when you are monitoring your full usage of your house and add smart switches, don't they add this all up? Or is this separate so you can see individual usage per plug? I'm planning to add a Shelly to every socket in the house so I can accurate measure all usage but also want the total usage of the full house via the main switchboard.
    I was wondering if you have an idea how to measure gas usage in the UK?

    • @HomeAutomationGuy
      @HomeAutomationGuy  Год назад

      I don't have Shelly in every socket (And for my house I think that would be overkill, and probably would become annoying as one of them is bound to fail every now and then), so the EM lets me see the whole house usage including everything that is hardwired in (Towel rails, whatever).
      These "individual devices" are separate, and don't get added to the overall house usage section at the top.

    • @bartverwijst1
      @bartverwijst1 Год назад

      @@HomeAutomationGuy Thanks, that's exactly what I wanted to hear. We're only living in a 2 bed flat, so not a lot of sockets in total anyway. Might even use standard plugs. That's really helpful!

    • @B-a_s-H
      @B-a_s-H Год назад

      What's the brand/model of your gasmeter?

  • @swademcYT
    @swademcYT 2 месяца назад

    My favourite is when people express power (kW) as "kWh per hour" xD... They are technically not wrong haha!

  • @techieboy333
    @techieboy333 Год назад

    Is there a way to import historic consumption data? I've got smart meters installed for gas and electricity and there's a third party web service that allows you to download historic data for a given period in whatever frequency (30 minute readings) your smart meter is set to report back to the DCC. Would be good to be able to get this into the Energy dashboard somehow to give some meaningful history.

  • @xtremeideaz
    @xtremeideaz Год назад

    For the Shelly, did you get the 50A clamp or 120A?

  • @passionblackbay
    @passionblackbay Год назад

    There is the HACS PowerCalc add-on available for detailed smart device monitoring (lights, speakers, switches). Is it also possible to use it with the docker/container installation?

  • @meptalon
    @meptalon 9 месяцев назад

    Awesome video, but.... how can I apply any of that as a tenant in a residential building? Nothing close to my apartment, the meters are in the basement/parking lot, so out of reach of any wifi or Bluetooth system.

    • @HomeAutomationGuy
      @HomeAutomationGuy  9 месяцев назад

      When I was a tenant I relied on smart power plugs that had energy monitoring to monitor individual devices, and finding an electricity provider that gave me usage data via an API. In the UK we have Octopus Energy that gives you access to the data in the way that can be imported into Home Assistant.

  • @jimmywoody6962
    @jimmywoody6962 Год назад

    How did you integrate Octopus Energy tariff into HA? I haven't got the integration, is it though hacks?

  • @hsynbrdk
    @hsynbrdk Год назад

    How do you get those messages from your home assistant?

  • @MyHeap
    @MyHeap Год назад

    Would you consider showing Rhasspy with HA in docker?

    • @HomeAutomationGuy
      @HomeAutomationGuy  Год назад

      That is something I am going to look at in the new year! 2023 is the "year of the voice" for Home Assistant, so I'll definitely be looking into this

    • @MyHeap
      @MyHeap Год назад

      @@HomeAutomationGuy That's awesome. I have Rhasspy set up on my home assistant docker stack as a base and another instance as a satellite on another computer. Still trying to make everything work. ( I have shared MQTT server and some command working, but I have something mis-configured because it will repeat the commands a few times.) When you start covering it, I hope you do a video or two on the Intent scripts and an explanation on how the intent sentences and slots work with Rhasspy. What I mean by this is variables, substitutions, slot programs, etc. I will continue to work on it as I have time. Maybe I can provide you some assistance with what I have figured out in the interim. If you are interested let me know and I will give you my email address.
      Regards,
      Joe

  • @petergdk
    @petergdk Год назад

    Sorry to ask, but how are you measuring your whole house with a Shelly EM? I thought all european counties had 3-phase power running into the house?
    Can the Shelly EM measure all three phases at once?

  • @fedefede843
    @fedefede843 Год назад

    hello. where are you getting the gas consumption from? do you have some kind of sensor installed? cheers!

    • @HomeAutomationGuy
      @HomeAutomationGuy  Год назад +1

      I haven't been able to figure out a way to get Gas consumption in either :(

    • @MrKlawUK
      @MrKlawUK Год назад

      is there any way to pull that in from octopus? I have smart meters for both and getting half hourly reports back for electric *and* gas. Octopus only shows me a day late but better than nothing. Don’t know if there is an integration that can pull from Octopus API. Or Loop which can actually pull that data more often - 2-4 hours delay so not live but not bad

    • @HomeAutomationGuy
      @HomeAutomationGuy  Год назад +1

      @@MrKlawUK I think if you have a smart meter you can get this data from the Octopus HACS integration.
      github.com/BottlecapDave/HomeAssistant-OctopusEnergy

  • @cnjelly7876
    @cnjelly7876 9 месяцев назад

    09:23 So the Shelly isn't actual live usage its interval just like the energy monitoring smart plugs?

    • @HomeAutomationGuy
      @HomeAutomationGuy  9 месяцев назад

      It's very small intervals so it's close enough to live for most use cases.

  • @amoenus_dev
    @amoenus_dev Год назад

    What I really would like to know how to MANUALLY add meter readings, ideally also retrospectively. I have no way of installing anything of the monitoring devices (no access/rented place)

    • @RaduUrsache
      @RaduUrsache Год назад

      get some power plugs that also monitor energy. put those at the core of all your devices. sum them up and you’ll have realtime monitoring + statistics. more expensive but no changes made to the house

  • @roberthuntley1090
    @roberthuntley1090 Год назад

    I'm not convinced about the accuracy of these current clamp measuring systems. I used to use a similar Owl Intuition PV monitoring system, and over a few years was able to compare its measurements with the 'official' solar & import meters. The solar generated reading wasn't too bad (95% accurate) but the import figure was way too high and was only 75% accurate. Its estimate of Exported power was unusable (250% out).
    I'm not blaming Owl in particular, there are systematic errors inherent in these things. As an example, the current clamps were rated at 71 Amps which is a sensible maximum load, but most of the time a solar system is generating a few amps (typical cloudy weather), and keeping the imported current down to a similar level as well. Means that the clamps are typically operating in the the very inaccurate end of their operating range. For the Owl clamps the quoted accuracy was 5% above 3 Amps, but only 10% below that.

  • @waperboy
    @waperboy Год назад +1

    80 percent... try 300 percent. Although Home Assistant has enabled me to decrease everyday power usage, heating and power is still... 300 percent more expensive, +/- 100 percentage units depending on daily prices.
    And after migrating HA recording to MariaDB, the energy cost calculations in HA went haywire, and is now utterly useless. I can run a SQL script to recalculate costs, but that only fixes the past - current energy cost calculations continue to be messed up.

  • @BartekCelary
    @BartekCelary Год назад

    Rounding should be done at the end of the calculation not before.

  • @sarahjrandomnumbers
    @sarahjrandomnumbers 9 месяцев назад +1

    2:42 If an electrician did that, I'd not use them again.

  • @sedatmehmed4371
    @sedatmehmed4371 Год назад

    No you didn't explain that poorly. But honestly people should pay more attention in high school physics classes. Anyway one way to think about it is speed vs distance covered. Power is your current speed and energy is the distance covered.

  • @Eric_Tennant
    @Eric_Tennant Год назад

    I sell power to the power company.

  • @guss2099
    @guss2099 Год назад +1

    Have you got a firewall installed on internet? Just wondering as with all those things connected, a hacker can easily wreak havoc on the system. 🤔

  • @LDN-pup
    @LDN-pup Год назад

    Oh, I wish I’d thought of just getting a “decent job that pays really well”!
    Considering the current climate (excuse the pun), that one out of touch explaina-brag really was an energy efficient way to turn people off your video/channel! (Ok, I admit it… that second pun *might* have been intentional 🙃)

    • @davet2667
      @davet2667 Год назад

      Don't be a tosser pal

  • @mercedesc350e5
    @mercedesc350e5 Год назад +1

    i just installed this about a week before this video. I think that the new statistics card may simplify this, but i created a utility meter helper (called sensor.electricity_used_today) that resets daily, then 7 statistics template sensors to return the change compared to 24 hours, 48 hours, 72 hours etc, so i have a real time 'use compared to this time yesterday, 2 days ago etc.
    I then create a final sensor that is the mean of these 7 sensors to generate a live comparison to my rolling 7 day power use.. a couple of gauge cards on my main dashboard gives me a glance into whether i've run the dishwasher too many times so far today!
    in sensors.yaml
    # Electricity sensors to compare with same time over last 7 days
    - platform: statistics
    name: "power change 1 day"
    entity_id: sensor.electricity_used_today
    state_characteristic: change
    max_age:
    hours: 24
    precision: 2
    sampling_size: 1200000
    - platform: statistics
    name: "power change 2 day"
    entity_id: sensor.electricity_used_today
    state_characteristic: change
    max_age:
    hours: 48
    precision: 2
    sampling_size: 1200000
    - platform: statistics
    name: "power change 3 day"
    entity_id: sensor.electricity_used_today
    state_characteristic: change
    max_age:
    hours: 72
    precision: 2
    sampling_size: 1200000
    - platform: statistics
    name: "power change 4 day"
    entity_id: sensor.electricity_used_today
    state_characteristic: change
    max_age:
    hours: 96
    precision: 2
    sampling_size: 1200000
    - platform: statistics
    name: "power change 5 day"
    entity_id: sensor.electricity_used_today
    state_characteristic: change
    max_age:
    hours: 120
    precision: 2
    sampling_size: 1200000
    - platform: statistics
    name: "power change 6 day"
    entity_id: sensor.electricity_used_today
    state_characteristic: change
    max_age:
    hours: 144
    precision: 2
    sampling_size: 1200000
    - platform: statistics
    name: "power change 7 day"
    entity_id: sensor.electricity_used_today
    state_characteristic: change
    max_age:
    hours: 168
    precision: 2
    sampling_size: 1200000
    - platform: min_max
    name: "power change average 7 day"
    type: mean
    round_digits: 2
    entity_ids:
    - sensor.power_change_1_day
    - sensor.power_change_2_day
    - sensor.power_change_3_day
    - sensor.power_change_4_day
    - sensor.power_change_5_day
    - sensor.power_change_7_day
    in templates.yaml
    - sensor:
    - name: "Energy Use compared to Weekly average"
    state: "{{ (((states('sensor.power_change_average_7_day') | float(0) / states('sensor.electricity_used_today') |float(0) ) * 100) | round(0)) }}"
    unit_of_measurement: "%"