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. Combined electricity, gas and water use sensor

Combined electricity, gas and water use sensor

Scheduled Pinned Locked Moved General Discussion
11 Posts 6 Posters 1.3k Views 5 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.
  • alowhumA Offline
    alowhumA Offline
    alowhum
    Plugin Developer
    wrote on last edited by alowhum
    #1

    I'm going to try and build a combined sensor that measures household consumption by reading the values of the 'official sensors'.

    • Has anyone done that already? Is there code available?
    • What sensors would make the node as universal as possible?
      • Light sensitive diode to detect electricity led pulses
      • What would be the most universal option to measure water? A hall effect sensor to detect magnetic pulses of water wheels? Or the IR optical method?
    • What kind of sensor could be used to measure household gas consumption? That sensor does this commercial product use?

    I'm going to give it a small OLED screen that will show live usage numbers. I'd like it to still be useful even without a connection to the MySensors network.

    • What would be the best thing to show? Live usage? Hourly usage? Previous day and today-so-far?

    Any other tips?

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

      It isn't a MySensors based solution, but I am reading my meters using rtl-sdr and a raspberry pi. It reads the signal used by the utility company for reading the meter. See this link:

      https://hackaday.com/2017/12/21/read-home-power-meters-with-rtl-sdr/
      and this one:
      https://github.com/bemasher/rtlamr

      I was lucky and my water, electric, and gas meters can all be read by the rtlamr program. It is not good for instant reading of the rate. I take a reading every hour and then subtract from the last hour to get an average usage for the hour.

      Also, search in the forums. There are a few threads about reading meters using MySensors and detecting LED blinks or hall effect.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kimot
        wrote on last edited by
        #3

        You are probably the exception that you have electricity, gas and water gauges side by side and you can read them with one device.

        YveauxY 1 Reply Last reply
        0
        • K kimot

          You are probably the exception that you have electricity, gas and water gauges side by side and you can read them with one device.

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

          @kimot said in Combined electricity, gas and water use sensor:

          You are probably the exception that you have electricity, gas and water gauges side by side and you can read them with one device.

          It's rather common in the Netherlands to have all these utility meters installed in a single cabinet.

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          • alowhumA alowhum

            I'm going to try and build a combined sensor that measures household consumption by reading the values of the 'official sensors'.

            • Has anyone done that already? Is there code available?
            • What sensors would make the node as universal as possible?
              • Light sensitive diode to detect electricity led pulses
              • What would be the most universal option to measure water? A hall effect sensor to detect magnetic pulses of water wheels? Or the IR optical method?
            • What kind of sensor could be used to measure household gas consumption? That sensor does this commercial product use?

            I'm going to give it a small OLED screen that will show live usage numbers. I'd like it to still be useful even without a connection to the MySensors network.

            • What would be the best thing to show? Live usage? Hourly usage? Previous day and today-so-far?

            Any other tips?

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

            @alowhum said in Combined electricity, gas and water use sensor:

            What kind of sensor could be used to measure household gas consumption? That sensor does this commercial product use?

            A reed switch counting revolutions of a rotating magnet.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            0
            • alowhumA Offline
              alowhumA Offline
              alowhum
              Plugin Developer
              wrote on last edited by alowhum
              #6

              @nagelc I just fell off my chair.

              Your usage data is just transmitted wirelessly out in the open?? Without encryption?

              What country do you live in?

              Madness! 0_0

              @kimot: users that don't have everything in one spot can just create two of the devices. They will be able to set which sensors they want to enable with simple toggles.

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

                I'm in the northeastern US. The meters use a variety of standard protocols. I think bemasher did a lot of work to reverse engineer them ( https://github.com/bemasher/rtlamr/wiki/Signal-Processing ), but now the work is done for all to use. The hardest part was sorting out my meters from my neighbors -- really.

                MySensors has way better security : )

                1 Reply Last reply
                0
                • alowhumA alowhum

                  @nagelc I just fell off my chair.

                  Your usage data is just transmitted wirelessly out in the open?? Without encryption?

                  What country do you live in?

                  Madness! 0_0

                  @kimot: users that don't have everything in one spot can just create two of the devices. They will be able to set which sensors they want to enable with simple toggles.

                  AnticimexA Offline
                  AnticimexA Offline
                  Anticimex
                  Contest Winner
                  wrote on last edited by
                  #8

                  @alowhum you would be surprised (and scared) if you learned how big part of all wireless communication done today is unencrypted or protected in any way except "security by obscurity"...

                  Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                  1 Reply Last reply
                  0
                  • alowhumA Offline
                    alowhumA Offline
                    alowhum
                    Plugin Developer
                    wrote on last edited by alowhum
                    #9

                    @nagelc said in Combined electricity, gas and water use sensor:

                    The hardest part was sorting out my meters from my neighbors -- really.

                    :-D :'-(

                    @Yveaux Thanks, I'll try the reed switch.

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      benhub
                      wrote on last edited by benhub
                      #10

                      If you want to be flexible, maybe it would be a better idea to separate this into different modules, and connect all modules to a single sensor node via i2c:

                      • a module that uses IR
                      • a module that uses a magnetic reed switch
                      • a module that connects to the meter in some other way

                      Every module consists of its sensor (the reed switch) and an Arduino Mini Pro. All modules talk the same protocol over i2c. The i2c address could be made configurable with jumpers. And one central sensor node does the usual mysensors part.

                      Just an idea, I never tried that. But I think I'll give it a try too.

                      With this one could create a mysensors node with 2 IR nodes and one reed switch, if you move to a new house with different meters, you could simply replace one of the IR node with a second reed switch.

                      1 Reply Last reply
                      0
                      • alowhumA Offline
                        alowhumA Offline
                        alowhum
                        Plugin Developer
                        wrote on last edited by
                        #11

                        @benhub that's an interesting thought.

                        Wouldn't it be easier to just make the code in the main node flexible instead?

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


                        18

                        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