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. Controllers
  3. Domoticz
  4. Reset values measured by Power Meter Pulse?

Reset values measured by Power Meter Pulse?

Scheduled Pinned Locked Moved Domoticz
9 Posts 5 Posters 963 Views 4 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.
  • koewackoK Offline
    koewackoK Offline
    koewacko
    wrote on last edited by
    #1

    Hi everybody,

    since Toon decided not to send the energy and gas values to Domoticz anymore (without having to API hack everything...) i made the Power Meter Pulse sensor and script. Got everything working eventually, but there are some measured values from testing (86 kwh in this case) which i want to reset.

    I have looked everywhere in Domoticz how to reset the value(s) but i cannot find it. Am i overlooking something or what?

    Thanks for the help!

    F K 2 Replies Last reply
    0
    • alowhumA Offline
      alowhumA Offline
      alowhum
      Plugin Developer
      wrote on last edited by
      #2

      Remove he device and re-add it.

      1 Reply Last reply
      0
      • koewackoK koewacko

        Hi everybody,

        since Toon decided not to send the energy and gas values to Domoticz anymore (without having to API hack everything...) i made the Power Meter Pulse sensor and script. Got everything working eventually, but there are some measured values from testing (86 kwh in this case) which i want to reset.

        I have looked everywhere in Domoticz how to reset the value(s) but i cannot find it. Am i overlooking something or what?

        Thanks for the help!

        F Offline
        F Offline
        FlyingDomotic
        wrote on last edited by
        #3

        @koewacko said in Reset values measured by Power Meter Pulse?:

        I have looked everywhere in Domoticz how to reset the value(s) but i cannot find it.

        As far I know, there's no way to remove only one value with Domoticz (as suggested, you can delete the sensor to destroy all values, but this may seems a bit aggressive ;-)

        The way I do, when incorrect values are stored, is to modify Domoticz's database directly. As usual, you have to backup the DB before changing something, as doing it badly can just corrupt your DB, so your Domoticz (as almost everything is stored here).

        Should you still want to proceed with DB changes, at your own risk, you may want to identify the sensor, stored in "DeviceStatus" table. As soon as you get the device idx (you may also find it on the Web interface), you should find the table(s) where data is store, which depends on device type. I don't have power pulse, so can't help you, but for energy meter, last day data is stored in "Meter" and historical data in "MeterCalendar". I usually change this table, either by modifying value and counter, or just deleting the row (depending on initial issue).

        I've got a small Unix shell file that stops Domoticz, run a .sql file (where you have to insert your SQL orders) and restart Domoticz that I can share, on request.

        1 Reply Last reply
        1
        • koewackoK koewacko

          Hi everybody,

          since Toon decided not to send the energy and gas values to Domoticz anymore (without having to API hack everything...) i made the Power Meter Pulse sensor and script. Got everything working eventually, but there are some measured values from testing (86 kwh in this case) which i want to reset.

          I have looked everywhere in Domoticz how to reset the value(s) but i cannot find it. Am i overlooking something or what?

          Thanks for the help!

          K Offline
          K Offline
          kimot
          wrote on last edited by
          #4

          @koewacko
          You can set negative offset 86kWh in Domoticz counter setup.

          1 Reply Last reply
          2
          • koewackoK Offline
            koewackoK Offline
            koewacko
            wrote on last edited by
            #5

            The offset would be an easy solution, in this case the total power usage is displayed as negative on the dashboard. The data in the log is very complete and correct.

            0_1566504994069_Knipsel.PNG

            Any idea how to solve the negative counter on the dashboard?

            zboblamontZ 1 Reply Last reply
            0
            • koewackoK koewacko

              The offset would be an easy solution, in this case the total power usage is displayed as negative on the dashboard. The data in the log is very complete and correct.

              0_1566504994069_Knipsel.PNG

              Any idea how to solve the negative counter on the dashboard?

              zboblamontZ Offline
              zboblamontZ Offline
              zboblamont
              wrote on last edited by zboblamont
              #6

              @koewacko That is today's reading, Domoticz will reset at midnight to zero using your new baseline.
              It has possibly created a false reading for the day, which is a little more complicated to edit if it is really important, if it is a dumb entry you can discard this can be deleted on the graph and it will erase the value (cursor over the value and Shift+click).
              Domoticz stores only the day values in it's database from memory, the cumulative value is incremented from last reading so is not a stored, that is all you will find in the data table on log.
              eg - My gas Node/Domoticz has screwed the cumulative gas reading, no idea when, only just noticed. Had intended to reprogram it for each pulse instead of every 5 anyway, so will take reprogram it, and on the next pulse thereafter re-synchronise the meter to Domoticz by altering the offset. It is the simplest method.

              1 Reply Last reply
              0
              • koewackoK Offline
                koewackoK Offline
                koewacko
                wrote on last edited by
                #7

                Hi @zboblamont,

                that is not my usage per day according to the reports. I use 30-40 kwh per day so is seems to be the cumulative which is wrong. The cumulative is also different from which is being shown by the Reports page in Domoticz.

                0_1566755882069_Knipsel.PNG

                Ill delete the sensor and add it again to see if it counts properly now.

                zboblamontZ 1 Reply Last reply
                0
                • koewackoK koewacko

                  Hi @zboblamont,

                  that is not my usage per day according to the reports. I use 30-40 kwh per day so is seems to be the cumulative which is wrong. The cumulative is also different from which is being shown by the Reports page in Domoticz.

                  0_1566755882069_Knipsel.PNG

                  Ill delete the sensor and add it again to see if it counts properly now.

                  zboblamontZ Offline
                  zboblamontZ Offline
                  zboblamont
                  wrote on last edited by zboblamont
                  #8

                  @koewacko I don't yet read power, but so far as I'm aware Domoticz utilises much the same technique as the gas. The cumulative value is what updates to Domoticz, the hourly and daily consumptions are derived from that, and these are what are stored in the database, or at least from what I've seen.
                  eg - I reprogram the gas node and it re-presents to the Gateway with the new cumulative value. When it starts updating values this appears on the screen as a value which can be trimmed by the offest to sync at the risk of a single false daily figure which is easily deleted if it is cloud cuckoo.

                  1 Reply Last reply
                  0
                  • koewackoK Offline
                    koewackoK Offline
                    koewacko
                    wrote on last edited by
                    #9

                    Couldnt get it to work, so the gas and powermeters where replaced after a call to the Energy company. The new P1 smartmeters is connected with usb to Domoticz and works like a charm!

                    Topic can be closed.

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


                    16

                    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