Home Assistant Energy Monitoring and Presence Detection

I will show you how to install and set up a power meter "PZEM 004T" In Home Assistant.
For real-time power monitoring. How to set up automation, in case we leave the house without turning off high-power electrical appliances.
All files are available on my GitHub page.
github.com/PricelessToolkit/P...
-------- Contents of this video --------
00:00 Intro
00:06 Explanation of Ideas
00:21 What is needed to repeat this project
00:33 Assembly
01:22 ESPHome configuration and ESP-01s Firmware Upload
01:48 Installation in the Breaker box
02:03 Sensor Integration into Home Assistant
02:59 Presence Detection setup
03:56 Automation Example
04:22 Future project "Droplet" Irrigation System for Home Assistant
-------- Parts used in this video --------
Power Supply 3.3v - s.click.aliexpress.com/e/_Aod9CF
Power Meter - s.click.aliexpress.com/e/_ALpOj6
ESP-01s and Programmer - s.click.aliexpress.com/e/_A67jm8
-------- My Equipment --------
Soldering Station AIXUN T3A - s.click.aliexpress.com/e/_Dmm...
Soldering Station AIXUN T3B - s.click.aliexpress.com/e/_DFD...
Soldering Hot Air + Soldering Iron - s.click.aliexpress.com/e/_9JasyF
Soldering Hot Plate - s.click.aliexpress.com/e/_A0NbsB
Reflow oven T-962A+ - s.click.aliexpress.com/e/_DDG...
PCB Holder - s.click.aliexpress.com/e/_9vAYir
PCB Cleaning Brush - s.click.aliexpress.com/e/_DCy...
Tweezer - s.click.aliexpress.com/e/_9A4JLl
Soldering Silicone Mat - s.click.aliexpress.com/e/_AtDNJH
Solder Paste - s.click.aliexpress.com/e/_9Qc90n
Soldering Wire - s.click.aliexpress.com/e/_A8JCLZ
Flux - s.click.aliexpress.com/e/_AlbMH5
Syringe Handle - s.click.aliexpress.com/e/_AWrOEX
-------- Digital Equipment --------
Smart SMD Tweezer - s.click.aliexpress.com/e/_APXu9N
Transistor Tester LCR-T7 - s.click.aliexpress.com/e/_DmG...
Multimeter - s.click.aliexpress.com/e/_A281PV
Power profiling - www.nordicsemi.com/Products/D...
-------- My Video Equipment ---------
Camera - amzn.to/3gShpJD
Light - amzn.to/3x1mDsb
Microphone - amzn.to/2UIH5jv
Turntable amzn.to/3E9qs2D
#homeassistant #smarthome #esphome

Пікірлер: 45

  • @PricelessToolkit
    @PricelessToolkit2 жыл бұрын

    I hope you find it useful, thanks for watching and subscribing. 😉

  • @RoofusKit
    @RoofusKit10 ай бұрын

    The Sense energy monitor is a commercial product designed to do just what you described, monitor the whole home consumption and try to infer what devices are using electricity at any given time. I've never heard of anyone who was pleased with its accuracy.

  • @PricelessToolkit

    @PricelessToolkit

    10 ай бұрын

    its just acurate enught.

  • @antonrekun
    @antonrekun2 жыл бұрын

    Thanks for this great video! I absolutely love how you got straight to the point without making the video too long

  • @hermannweinzierl5731
    @hermannweinzierl57314 ай бұрын

    great idea!!m Do it

  • @PricelessToolkit

    @PricelessToolkit

    4 ай бұрын

    Thanks

  • @richieguy4477
    @richieguy44772 жыл бұрын

    Thanks for sharing. The only missing part is the wiring connection from TTL port to ESP01S. It would be great if you can clarify on this.

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    Hi, Need to be connected like any other uart device "Transmitting ligne to receiving ligne" ( ESP TX to RX ESP RX to TX )

  • @FelixSEgea

    @FelixSEgea

    Жыл бұрын

    Hi! Ttl port need 5vdc to work and you use 3,3vdc, can you explain betterthis point?

  • @bartmulder6995
    @bartmulder69956 ай бұрын

    When you are far away from home 😂😂

  • @PricelessToolkit

    @PricelessToolkit

    6 ай бұрын

    😂

  • @G6EJD
    @G6EJD Жыл бұрын

    Without a Powerfactor reading to apply to the results the values are largely inaccurate eg V.A.PF = Watts even more important if you have solar

  • @PricelessToolkit

    @PricelessToolkit

    Жыл бұрын

    HI, David, subscriber "Nunu00" fixed reactive power 15 days ago, see new "pmeter.yaml"

  • @fouadkhalifa520
    @fouadkhalifa520 Жыл бұрын

    Thanks for the video, I have one clarification In PZEM Module data sheet it needs 5vdc so please advise 3.3Vdc is Ok ?

  • @PricelessToolkit

    @PricelessToolkit

    Жыл бұрын

    YES!

  • @tronronboyd
    @tronronboyd Жыл бұрын

    Hi there. Thank you for this great video. I was able to successfully get it working, first time. Do you have code that would allow the use of the PZEM meter with the four seven segment displays on it? I understand it uses a different protocol. HA help files describe a program to do this but it is serial only, not OTA using the ESP-01s.

  • @PricelessToolkit

    @PricelessToolkit

    Жыл бұрын

    Hi, I'm glad everything worked. Do you mean the second ESP module with the segment display? If so, then I don't have the ready code, but it's easy to do 1. (esphome.io/components/sensor/homeassistant.html) 2. (esphome.io/components/display/index.html)

  • @tronronboyd

    @tronronboyd

    Жыл бұрын

    @@PricelessToolkit No, I was referring to the PZEM-004, which I understand is not modbus.

  • @wernerbotes4261
    @wernerbotes426111 ай бұрын

    Hi thanks for the video works perfectly on my system. Question is there a way to program the ESP32 to have a more accurate reading on the PMeter_current took a clamp meter and the reading is off by 0.2amp.

  • @PricelessToolkit

    @PricelessToolkit

    11 ай бұрын

    Hi, I think there is no way to calibrate "Current" in esphome, maybe I'm wrong.

  • @PricelessToolkit

    @PricelessToolkit

    11 ай бұрын

    Sorry, the first time I read your comment I did not understand your question 🙂, yes, you can "calibrate_linear" esphome.io/components/sensor/index.html#calibrate-linear

  • @wernerbotes4261

    @wernerbotes4261

    11 ай бұрын

    @@PricelessToolkit Hi thanks will test and see if I get it going, I'm not a programmer LOL.

  • @00xeno00
    @00xeno002 жыл бұрын

    Did you modify the pzem module adding 1k ohm resistor? It should work 5v otherwise....

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    No, I didn't, It working with 3.3v TTL without a problem.

  • @ToTo-od9wz
    @ToTo-od9wz2 жыл бұрын

    How we can do same thing for a triphasic power net?

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    Hi, easy! community.home-assistant.io/t/how-to-use-pzem004t-energy-monitor-with-esphome/107083/114?u=madman

  • @fouadkhalifa520
    @fouadkhalifa520 Жыл бұрын

    I successfully connect it, but all the reading indicate unknown, did you know how i could fix that? thanks for your support

  • @PricelessToolkit

    @PricelessToolkit

    Жыл бұрын

    Hi, I think you mixed up RX TX

  • @fouadkhalifa520

    @fouadkhalifa520

    Жыл бұрын

    @@PricelessToolkit correct I modify and now working Thanks a lot

  • @PricelessToolkit

    @PricelessToolkit

    Жыл бұрын

    @@fouadkhalifa520 Glad to be able to help

  • @TomaszDominikowski
    @TomaszDominikowski2 жыл бұрын

    What if I have three phase power?

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    There are other power meters with multiple transformers, or zorruno.com/w/EnergyMonitoringPZEM004T

  • @EpicDesignSolutions
    @EpicDesignSolutions2 жыл бұрын

    this should work in autstralia right?

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    Hi. It has a range of 80-260V so yes!

  • @EpicDesignSolutions

    @EpicDesignSolutions

    2 жыл бұрын

    @@PricelessToolkit excellent.. thanks for the reply. And subbed

  • @EpicDesignSolutions

    @EpicDesignSolutions

    2 жыл бұрын

    @@PricelessToolkit and do you think its possible to make a wireless smart button to trigger Google routins? Maybe next project?

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    @@EpicDesignSolutions I plan to make like a Battery powered"stream deck" but smaller for HA . But next project is "Droplet" you can check community tab. Thanks for Sub !!!!!!

  • @varunkumaran2624
    @varunkumaran26242 жыл бұрын

    Reactive power is unknown... What shld we do then?? Shld I wait a bit longer ?

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    Hi, yes I know about it. In YAML calculation for "Reactive power" is wrong. I put this part in the config in the hope that someone will fix it and share it :)

  • @varunkumaran2624

    @varunkumaran2624

    2 жыл бұрын

    Ohh okayyy

  • @eduardofranca5805
    @eduardofranca5805 Жыл бұрын

    Hi, your video is great!!! BUT, TTL port need 5vdc to work and you use 3,3vdc, can you explain it? tks

  • @PricelessToolkit

    @PricelessToolkit

    Жыл бұрын

    Hi, it works with 3.3V too. Many people use 3.3v and have no problem.

  • @iecasyed6397
    @iecasyed63972 жыл бұрын

    you need to adjust the content

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    Hi ?

  • @PricelessToolkit

    @PricelessToolkit

    2 жыл бұрын

    adjust what?