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. MT681 - Energy Meter

MT681 - Energy Meter

Scheduled Pinned Locked Moved Domoticz
2 Posts 2 Posters 37 Views 2 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.
  • H Offline
    H Offline
    hyla
    wrote on last edited by
    #1

    Hi,

    my electricity supplier swapped meters: we've now got a MT681 and I was forced to get rid of my old sensor.
    So far things seem to work okay-ish, but there are a few things I don't quite understand...

    I've adapted the current "EnergyMeterPulseSensor" example.
    The optical sensor is connected to a ESP32 which is doubling as a Gateway.

    These are "MyMessages":

    MyMessage wattMsg(CHILD_ID, V_WATT);
    MyMessage kWhMsg(CHILD_ID, V_KWH);
    

    The Sketch Info:

    sendSketchInfo(F("Energy Meter"), F("1.1"));
    

    B.t.w.: what's the "F" for? That didn't use to be there ... :)
    I then present the device to Domoticz:

    present(CHILD_ID, S_POWER);
    

    And in the loop I send my data:

    send(kWhMsg.set(kWh, 4));             // Send kWh value to gw
    send(wattMsg.set(Watt,0));            // Send watt value to gw
    

    "Watt" being the current usage, "kWh" the total consumption that was registrated by my fancy MT681
    since we received it.
    In Domoticz I get just one device: Type "general", Subtype "kWh". In the log I get a "Power Usage" graph
    and a block graph telling me the "Energy usage" during one hour. Is there a way to display the current energy
    counter state as well. I seem to remember that it used to show up somewhere...

    In the hardware section my gateway/sensor node has 7 children with curious values:
    children.jpg
    How did that happen? I would expect to have three children there: S_Power, S_Custom and the S_Arduino_Node...

    S_Custom was an experiment to add a RSSI value (via "WiFi.RSSI()"). Didn't work though. I did get values for RSSI
    but couldn't figure out as what/how to send them to Domoticz. Any ideas here?

    Thanks everybody!
    Christoph

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      The F things is for Flash. It is optional, but saves ram. Detailed information at http://www.gammon.com.au/progmem

      For RSSI, take a look at https://github.com/mfalkvidd/Arduino-MySensors-ESP8266-RFM69-Gateway/blob/master/Arduino-MySensors-ESP8266-RFM69-Gateway.ino#L109

      I don't know about the children stuff.

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


      11

      Online

      11.7k

      Users

      11.2k

      Topics

      113.0k

      Posts


      Copyright 2019 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