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. Energy meter with two tariffs

Energy meter with two tariffs

Scheduled Pinned Locked Moved Domoticz
6 Posts 5 Posters 2.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.
  • eSumoE Offline
    eSumoE Offline
    eSumo
    wrote on last edited by
    #1

    Hello everyone!
    MySensors.org is the perfect project! Good work! I already have at home 6 MySensors and not the end!
    I use Domoticz a long time thinking about one thing.
    My electric meter has two tariffs (day / night). Sketch I modified and displays the nodes 3 - day, night and total (added). It works great, but ...
    I have seen pictures of graphs, where the "Usage 1", "2 Usage", "Cons 1", "2 Cons", "Cons Total" and the other in one chart! I think it's smart meter P1.
    I also think that it is creating MySensor (nodes, types, ...), which would Domoticz detected as the SmartMeter and display a graph common to both tariffs.
    Does anyone know how to do it?
    Or other options to display one chart for both tariffs?

    Thanks...

    And sorry about the my English. :(

    T 1 Reply Last reply
    0
    • D Offline
      D Offline
      diogoc
      wrote on last edited by
      #2

      I have the same question.
      How to display two tarifs?

      1 Reply Last reply
      0
      • eSumoE eSumo

        Hello everyone!
        MySensors.org is the perfect project! Good work! I already have at home 6 MySensors and not the end!
        I use Domoticz a long time thinking about one thing.
        My electric meter has two tariffs (day / night). Sketch I modified and displays the nodes 3 - day, night and total (added). It works great, but ...
        I have seen pictures of graphs, where the "Usage 1", "2 Usage", "Cons 1", "2 Cons", "Cons Total" and the other in one chart! I think it's smart meter P1.
        I also think that it is creating MySensor (nodes, types, ...), which would Domoticz detected as the SmartMeter and display a graph common to both tariffs.
        Does anyone know how to do it?
        Or other options to display one chart for both tariffs?

        Thanks...

        And sorry about the my English. :(

        T Offline
        T Offline
        tsjoender
        wrote on last edited by
        #3

        @esumo The P1 interface of the Dutch smart meters would show four counters (peak/low consumption and peak/low production) in a telegram which Domoticz uses to update the counters accordingly. The virtual sensors will not produce these graphs I think. The best you could try is to emulate the P1 behaviour by sending the telegrams that the P1 interface produces on a serial interface and then connect it as if it were a P1 interface. This would be beyond MySensors scope and more a Arduino/ESP8266 serial protocol exercise (although it would not stop you to also send out the values gathered using MySensors).

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

          I think MySensors do not support this P1 power meter.
          For S_POWER type you have got only this variables: V_WATT, V_KWH, V_VAR, V_VA, V_POWER_FACTOR

          If you need this two tariff power meter in Domoticz you must use other platform ( ESPeasy for example ) witch support sending JSON http calls.

          For P1 power meter format is:

          /json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=USAGE1;USAGE2;RETURN1;RETURN2;CONS;PROD

          IDX = id of your device (This number can be found in the devices tab in the column "IDX")
          USAGE1= energy usage meter tariff 1, This is an incrementing counter
          USAGE2= energy usage meter tariff 2, This is an incrementing counter
          RETURN1= energy return meter tariff 1, This is an incrementing counter
          RETURN2= energy return meter tariff 2, This is an incrementing counter
          CONS= actual usage power (Watt)
          PROD= actual return power (Watt)

          USAGE and RETURN are counters (they should only count up).
          For USAGE and RETURN supply the data in total Wh with no decimal point.
          (So if your meter displays f.i. USAGE1= 523,66 KWh you need to send 523660)

          chisightC 1 Reply Last reply
          0
          • K kimot

            I think MySensors do not support this P1 power meter.
            For S_POWER type you have got only this variables: V_WATT, V_KWH, V_VAR, V_VA, V_POWER_FACTOR

            If you need this two tariff power meter in Domoticz you must use other platform ( ESPeasy for example ) witch support sending JSON http calls.

            For P1 power meter format is:

            /json.htm?type=command&param=udevice&idx=IDX&nvalue=0&svalue=USAGE1;USAGE2;RETURN1;RETURN2;CONS;PROD

            IDX = id of your device (This number can be found in the devices tab in the column "IDX")
            USAGE1= energy usage meter tariff 1, This is an incrementing counter
            USAGE2= energy usage meter tariff 2, This is an incrementing counter
            RETURN1= energy return meter tariff 1, This is an incrementing counter
            RETURN2= energy return meter tariff 2, This is an incrementing counter
            CONS= actual usage power (Watt)
            PROD= actual return power (Watt)

            USAGE and RETURN are counters (they should only count up).
            For USAGE and RETURN supply the data in total Wh with no decimal point.
            (So if your meter displays f.i. USAGE1= 523,66 KWh you need to send 523660)

            chisightC Offline
            chisightC Offline
            chisight
            wrote on last edited by
            #5

            MySensors does support previously undefined data fields, if your controller does. Fields like S_CUSTOM, V_VAR1, ... V_VAR5 are options for sending counters and other variables that were not explicitly defined.

            See me on IRC at ircs://freenode:6697/##nodered and ircs://freenode:6697/#mysensors

            1 Reply Last reply
            0
            • D Offline
              D Offline
              diogoc
              wrote on last edited by
              #6

              Thanks.
              I use a MQTT gateway between the node and the domoticz.
              It seems that I have no choice than create two childs, one for each tariff.

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


              23

              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