Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. best solution to monitor and log power usage

best solution to monitor and log power usage

Scheduled Pinned Locked Moved General Discussion
37 Posts 9 Posters 1.0k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NeverDieN NeverDie

    OK, I found both the problem description and also, allegedly, a fix for the Shelly 2.5 hotness. TL;DR: if you leave GPIO16 floating, then it sounds as though Shelly 2.5 will experience a partial short circuit and heat up to 62C, but if you simply configure GPIO16 as an input, it will, allegedly, avoid that problem and run at 15C instead! Well, I'm guessing that by 15C the blogger in the following link, which is where I got my information, means ambient temperature., or thereabouts: https://savjee.be/2020/11/shelly25-esphome-potential-fire-hazard-fix/

    So, with that now sorted, I re-submitted my order. :) I'd sleep better if the hardware had been designed to guarantee that such a problem could never occur, rather than allow a potential software bug to trigger it, but it is what it is. Hopefuly the UL certification is genuine, because their failsafe testing is even more important for a device harboring a potential hazard such as this. You never know if or when a lightning bolt or voltage spike (or cosmic ray for that matter!) might glitch it out. Perhaps, just to remove all doubts, it should be encased in intumescent putty inside the electrical box.... One could argue that it would/might be overkill, but aside from the sticky mess and the extra cost, I'm not aware of any other downsides to doing so. Plainly the alternative of planting it inside a full metal junction box to secure improved protection from Murphy's Law would defeat the whole reason for installing it in the first place. On the other hand, I seem to recall that even regular outlet boxes are tested to meet at least minimum performance standards and are therefore probably safe enough to contain a failure should one occur. After all, AFAIK, that's much if not their entire raison d'etre.

    @BearWithBeard Thanks for the heads up!

    BearWithBeardB Offline
    BearWithBeardB Offline
    BearWithBeard
    wrote on last edited by
    #16

    @NeverDie Interesting find. But according to this GitHub issue, that fix only concerns those Shellys that have been flashed with certain versions of Tasmota or ESPhome, where the GPIOs had been misconfigured. To me, that sounds like it was an issue on top of the inherently higher temperature of the Shelly 2.5, doesn't it? I assumed the Shelly 2.5 temperatures were higher because of the second power metering circuit on board, potentially dissipating more heat through resistors.

    Anyway - you are right that the Shellys have over-temperature protection which should kick in at 90 to 95°C and I can only assume that all components are rated for temperatures above that. So in that regard it should be fine if the Shelly 2.5 operates at higher temperatures than the other models. The device is completely encased, which lowers the risk of scorching wire insulations or terminals with lower temperature ratings that might touch it.

    It may just be that it triggers the OTP earlier than single channel Shellys when two (high?) loads are connected. Then again, installing two single channel Shellys in a single power outlet could potentially be even worse, as you then have two heat-emitting devices in close proximity. Giving it a try may be the only way to find out.

    1 Reply Last reply
    0
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by NeverDie
      #17

      @BearWithBeard One of the posts in the github you linked seemed to imply that much of the regular heat comes from the energized relay coil. I'm hoping it has an NC contact on the relay, since all I want to do is monitor energy consumption. I have no interest in switching it on and off, and for my use-case I'd rather it didn't even have switching capability. I can't tell from the cryptic markings on the case though whether it has an NC or not, but if it does, then hopefully much of the heat can be avoided, since the relay wouldn't need to be energized.

      [Edit: I found the manual. Regrettably, it has no NC contact: https://shelly.cloud/documents/user_guide/shelly_25.pdf ]


      One good bit of news: Looks as though it really does have a UL listing:
      https://productiq.ulprospector.com/en/profile/1897230/pazx.e504925?term=e504925&page=1

      At least that much is promising.

      BearWithBeardB 1 Reply Last reply
      0
      • NeverDieN NeverDie

        @BearWithBeard One of the posts in the github you linked seemed to imply that much of the regular heat comes from the energized relay coil. I'm hoping it has an NC contact on the relay, since all I want to do is monitor energy consumption. I have no interest in switching it on and off, and for my use-case I'd rather it didn't even have switching capability. I can't tell from the cryptic markings on the case though whether it has an NC or not, but if it does, then hopefully much of the heat can be avoided, since the relay wouldn't need to be energized.

        [Edit: I found the manual. Regrettably, it has no NC contact: https://shelly.cloud/documents/user_guide/shelly_25.pdf ]


        One good bit of news: Looks as though it really does have a UL listing:
        https://productiq.ulprospector.com/en/profile/1897230/pazx.e504925?term=e504925&page=1

        At least that much is promising.

        BearWithBeardB Offline
        BearWithBeardB Offline
        BearWithBeard
        wrote on last edited by BearWithBeard
        #18

        @NeverDie Oh, if you refer to the second set of infrared images - those with the relay as the hottest spot - they are taken from a Sonoff Basic. The other set is the Shelly 2.5.

        In the meantime, I found some images of Shelly 2.5 with burnt spots and antennas pierced by the screw terminal pins. Reports of bad solder joints and such (German source with images). It seems that this was a faulty batch of devices from early 2019 which has been recalled. Never the less, I just opened the enclosure of my two Shelly 2.5 and I can confirm that they are obviously of a newer revision (bought in december 2020. the PCB was produced in July 2020, according to the silkscreen). The antenna is now attached to the upper part of the enclosure so that it can't be pierced by the pins and the cable is not touching the resistor R42 that is getting so hot in the FLIR images, although it's routed around the PCB in that corner. All pads and terminals look clean and nicely soldered.

        The relays are 10A 250VAC rated HF32FA-G/012-HSL1 models.

        1 Reply Last reply
        0
        • NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by NeverDie
          #19

          @BearWithBeard It's all so ironic: my whole reason for buying something pre-made was to just slot something in without having to think about it. Now, with the cloud of doubt hanging over this thing, here I am having to spend time thinking about it. :face_with_rolling_eyes:

          For my intended purpose the ideal solution is probably something like this:
          https://jeelabs.org/book/1508a/ Even if it were to fail, it's all just low power low voltage stuff and my refrigerator would keep on working, as there's no on-off switching like with the commercially available pre-made products. No direct connection to mains, and no batteries to change either: it lives by soaking up just a tiny amount of parasitic power. I should probably just do it right the first time, and then I can just be done with it without having to worry about my refrigerator losing power, or whatever else might go wrong as it ages over a long future.

          1 Reply Last reply
          0
          • NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by NeverDie
            #20

            What no one seems to mention but which certainly seems relevant is that the working temperature range for the Shelly 2.5 tops out at 40C:

            https://shelly.cloud/knowledge-base/devices/shelly-25/

            Does "working temperature" mean ambient temperature, or the temperature of the device itself? I'm not sure, but I believe it refers to the temperature of the device and the components therein, not ambient temperature. And if that is so, then looking at all the measurements people have done:
            https://community.home-assistant.io/t/shelly-2-5-getting-hot-to-touch-63-c-external-case-should-i-be-worried/175376
            it seems as though many of those measurements are above Shelly 2.5's own declared spec.

            BearWithBeardB 1 Reply Last reply
            0
            • NeverDieN NeverDie

              What no one seems to mention but which certainly seems relevant is that the working temperature range for the Shelly 2.5 tops out at 40C:

              https://shelly.cloud/knowledge-base/devices/shelly-25/

              Does "working temperature" mean ambient temperature, or the temperature of the device itself? I'm not sure, but I believe it refers to the temperature of the device and the components therein, not ambient temperature. And if that is so, then looking at all the measurements people have done:
              https://community.home-assistant.io/t/shelly-2-5-getting-hot-to-touch-63-c-external-case-should-i-be-worried/175376
              it seems as though many of those measurements are above Shelly 2.5's own declared spec.

              BearWithBeardB Offline
              BearWithBeardB Offline
              BearWithBeard
              wrote on last edited by BearWithBeard
              #21

              @NeverDie Working temperature means ambient in this case. Quoting the Allterco CEO:

              Max ambient temperature is 40 degree. With no load PCB temperature is 55-60 degree. At MAX load continuesly is 87-90 degree.
              Heating protection will switch off device at 95 degree.
              All parts inside are 105-120 degree certifed for continuous usage.

              Original source: https://www.facebook.com/groups/1686781668087857/permalink/2054834997949187/

              1 Reply Last reply
              0
              • NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by
                #22

                Aha, good catch.

                I presume it's just measuring apparent power instead of real (true) power? Power factor is going to be relevant for a refrigerator. The Shelly 2.5 makes no mention of measuring power factor or true power, but the more pricey Shelly EM does:
                https://www.amazon.com/Shelly-Smart-Energy-Monitor-Consumption/dp/B07ZHLN63D

                BearWithBeardB 1 Reply Last reply
                0
                • NeverDieN Offline
                  NeverDieN Offline
                  NeverDie
                  Hero Member
                  wrote on last edited by NeverDie
                  #23

                  These peacefair energy monitors are fairly inexpensive and also appear to measure power factor:
                  https://www.youtube.com/watch?v=74gKMTsHmYY

                  They use RS485 for communication.

                  Aside from that, it's not easy to find a power meter that takes power factor into account and which has anything other than just an LCD for its output interface.

                  1 Reply Last reply
                  0
                  • NeverDieN NeverDie

                    Aha, good catch.

                    I presume it's just measuring apparent power instead of real (true) power? Power factor is going to be relevant for a refrigerator. The Shelly 2.5 makes no mention of measuring power factor or true power, but the more pricey Shelly EM does:
                    https://www.amazon.com/Shelly-Smart-Energy-Monitor-Consumption/dp/B07ZHLN63D

                    BearWithBeardB Offline
                    BearWithBeardB Offline
                    BearWithBeard
                    wrote on last edited by
                    #24

                    @NeverDie The power metering IC is an ADE7953 that can measure active, reactive, and apparent energy.

                    The API states that it measures real power in the description:

                    power | number | Current real AC power being drawn, in Watts

                    1 Reply Last reply
                    0
                    • NeverDieN Offline
                      NeverDieN Offline
                      NeverDie
                      Hero Member
                      wrote on last edited by NeverDie
                      #25

                      This suddenly makes the Shelly 2.5 a whole lot more interesting! Do we know whether the Shelly 2.5 reports real power by default out-of-the-box, or does it require special configuration?

                      1 Reply Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #26

                        Hmmm.. Apparently even the sonoff POW R2 can measure real power and power factor: https://wattaurus.com/posts/smart_switch

                        Well, either the Sonoff or the Shelly 2.5 sound much easier to work with than the PeaceFair. I guess it's time I try them out! I can compare their measurements to my ancient kill-a-watt meter, which supposedly measures true power also, literally plug and play.

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          ClairePaterson
                          wrote on last edited by
                          #27

                          Nice one, thx!

                          1 Reply Last reply
                          0
                          • NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by NeverDie
                            #28

                            Found this Sonof IW100:
                            https://smile.amazon.com/gp/product/B083LJ4HWQ/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

                            If it measures real power, then it should be code compliant, easier to wire, and maybe safer overall, so I ordered one to test. It's ETL certified, which as far as I can tell is just as good as UL Certified, since ETL tests to the same standards as UL. I've also read it uses the same hardware as the Sonoff S31.

                            YveauxY 1 Reply Last reply
                            1
                            • NeverDieN NeverDie

                              Found this Sonof IW100:
                              https://smile.amazon.com/gp/product/B083LJ4HWQ/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

                              If it measures real power, then it should be code compliant, easier to wire, and maybe safer overall, so I ordered one to test. It's ETL certified, which as far as I can tell is just as good as UL Certified, since ETL tests to the same standards as UL. I've also read it uses the same hardware as the Sonoff S31.

                              YveauxY Offline
                              YveauxY Offline
                              Yveaux
                              Mod
                              wrote on last edited by Yveaux
                              #29

                              @NeverDie IW100 uses the CS7598, according to https://templates.blakadder.com/sonoff_IW100.html
                              You'll be alright!

                              http://yveaux.blogspot.nl

                              1 Reply Last reply
                              1
                              • NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by NeverDie
                                #30

                                I hadn't known this before, but from recent reading it appears that relays are appropriate for switching resistive loads, but for inductive loads (like motors) a "contactor" is recommended instead. Apparently the reason is that opening a relay on an inductive load can cause voltages to jump beyond the relay's rating, resulting in arcing. Well, I suppose that does make sense. In contrast, from what little I've read, contactors are resistant to arcing.

                                On the other hand, I thought the use of flywheel diodes was supposed to prevent these kinds of inductive voltage spikes, in which case I don't see what the problem is. Maybe there is no equivalent of a flywheel diode for an AC motor as there is for a DC motor? Not sure, but on first glance it looks as though it may require a snubber or similar:
                                https://m.littelfuse.com/~/media/electronics/application_notes/reed_switches/littelfuse_magnetic_sensors_and_reed_switches_inductive_load_arc_suppression_application_note.pdf.pdf

                                So, in principle it is possible, but I don't know whether sonoff's or similar account for that or not.

                                Hmmm.. It's starting to look as though the Shelly EM may be the only sure-fire KISS solution for monitoring refrigerators, as there is no risk of it opening/closing relays, which is something I don't need and, if anything, would rather avoid anyway.

                                Sorry for all my dithering on this thread, but by process of elimination I think I've may have finally arrived at a correct answer. Hopefully it's illuminating for others as well.

                                YveauxY 1 Reply Last reply
                                0
                                • NeverDieN NeverDie

                                  I hadn't known this before, but from recent reading it appears that relays are appropriate for switching resistive loads, but for inductive loads (like motors) a "contactor" is recommended instead. Apparently the reason is that opening a relay on an inductive load can cause voltages to jump beyond the relay's rating, resulting in arcing. Well, I suppose that does make sense. In contrast, from what little I've read, contactors are resistant to arcing.

                                  On the other hand, I thought the use of flywheel diodes was supposed to prevent these kinds of inductive voltage spikes, in which case I don't see what the problem is. Maybe there is no equivalent of a flywheel diode for an AC motor as there is for a DC motor? Not sure, but on first glance it looks as though it may require a snubber or similar:
                                  https://m.littelfuse.com/~/media/electronics/application_notes/reed_switches/littelfuse_magnetic_sensors_and_reed_switches_inductive_load_arc_suppression_application_note.pdf.pdf

                                  So, in principle it is possible, but I don't know whether sonoff's or similar account for that or not.

                                  Hmmm.. It's starting to look as though the Shelly EM may be the only sure-fire KISS solution for monitoring refrigerators, as there is no risk of it opening/closing relays, which is something I don't need and, if anything, would rather avoid anyway.

                                  Sorry for all my dithering on this thread, but by process of elimination I think I've may have finally arrived at a correct answer. Hopefully it's illuminating for others as well.

                                  YveauxY Offline
                                  YveauxY Offline
                                  Yveaux
                                  Mod
                                  wrote on last edited by
                                  #31

                                  @NeverDie If you only want to monitor and are worried about relays you could always open the shelly/sonoff/... and permanently shortcut/bypass the relay. And while you're at it, also disconnect the relay coil contacts (or remove the relay completely) to reduce heating of the unit and reduce power consumption.

                                  http://yveaux.blogspot.nl

                                  1 Reply Last reply
                                  1
                                  • nagelcN Offline
                                    nagelcN Offline
                                    nagelc
                                    wrote on last edited by
                                    #32

                                    Roll your own MySensors version can be surprisingly simple from a hardware perspective. I did this to monitor my electric car. Plug a split coil to the audio jack:

                                    e995823b-1ad5-49cb-b1ec-ef51c6ce2ab7-image.png

                                    The thinking about it part, not so easy! Good reference site:
                                    https://learn.openenergymonitor.org

                                    C and R depend on your split coil. Calibration is a real challenge. For my car, I know what it draws from plugging into commercial chargers, and I was not worried about precision. For unknown loads around the house, you would have to have something known to calibrate against. Also, the coil has to go around 1 leg of the power wiring. which means you need an adapter cable with the line and neutral split out (but still insulated).

                                    NeverDieN 1 Reply Last reply
                                    0
                                    • nagelcN nagelc

                                      Roll your own MySensors version can be surprisingly simple from a hardware perspective. I did this to monitor my electric car. Plug a split coil to the audio jack:

                                      e995823b-1ad5-49cb-b1ec-ef51c6ce2ab7-image.png

                                      The thinking about it part, not so easy! Good reference site:
                                      https://learn.openenergymonitor.org

                                      C and R depend on your split coil. Calibration is a real challenge. For my car, I know what it draws from plugging into commercial chargers, and I was not worried about precision. For unknown loads around the house, you would have to have something known to calibrate against. Also, the coil has to go around 1 leg of the power wiring. which means you need an adapter cable with the line and neutral split out (but still insulated).

                                      NeverDieN Offline
                                      NeverDieN Offline
                                      NeverDie
                                      Hero Member
                                      wrote on last edited by NeverDie
                                      #33

                                      @nagelc said in best solution to monitor and log power usage:

                                      Plug a split coil to the audio jack:

                                      @nagelc What?! You're doing some kind of energy monitoring by plugging a split core to the audio jack of your electric car? I know you're a smart guy, but I just don't understand how that could work, even in principle--unless you were charging your car through your audio jack, and surely that can't be. What are you even measuring?

                                      Wait a minute. Are you referring to a real car, or a toy car?

                                      1 Reply Last reply
                                      0
                                      • nagelcN Offline
                                        nagelcN Offline
                                        nagelc
                                        wrote on last edited by nagelc
                                        #34

                                        Oops. I wasn't very clear.
                                        My split coil has a cable with an audio plug on the end. Like this one:
                                        https://www.electrodragon.com/product/yhdc-non-invasive-ac-current-sensor-100a30a/
                                        So I used an audio jack on the board to plug the split coil into. That makes it easy to swap different rating coils. The picture above is 100A, but I'm using the 30A coil for the car charger.
                                        Then the coil goes around one of the power wires going out to the charger.
                                        A real car : )

                                        1 Reply Last reply
                                        1
                                        • NeverDieN Offline
                                          NeverDieN Offline
                                          NeverDie
                                          Hero Member
                                          wrote on last edited by
                                          #35

                                          Reporting back: After watching some youtube reviews, I decided to settle on the Emporia Smart Home Energy monitor:
                                          https://youtu.be/Ph9344O7DEs

                                          The above reviewer had also done a teardown review of the Gen 1 version, where he was very vocal about the things he didn't like, and the manufacturer wrote a very thoughtful multi-paragraph response to his video to explain why it was that way and why Gen 2 would be better. I had originally dismissed it because some of the prominent amazon reviews had called it inaccurate, but the current offering is the second generation, and one of the youtubers compared the Gen2 measurements to his power bill and found it to be accurate to within 1% of what his utility company billed him.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          21

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular