Giter Club home page Giter Club logo

Comments (13)

donavanbecker avatar donavanbecker commented on June 14, 2024

Currently, I am unaware that this plugin supports that. A pull request is welcome for this.

from homebridge-meross.

tautf avatar tautf commented on June 14, 2024

Maybe there could be a reference for the power exposure by looking into homebridge-tuya plugin.
Unfortunately i couldnt try it, but the config seems like there is an option to expose the power consumption.

Reference to: https://github.com/iRayanKhan/homebridge-tuya/blob/master/config-example.MD

from homebridge-meross.

github-actions avatar github-actions commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from homebridge-meross.

Marcwa19197 avatar Marcwa19197 commented on June 14, 2024

Im not sure if Homekit itself can show power consumptions in the UI. (Can someone please clarify this? Maybe with an Screenshot how the UI will look with an official Homekit enabled Power-Meter?)
I did a few requests with HTTP-Catcher to my Meross MSS310 - i can get all the power consumption with following request. Also i was able to get all the data which is saved in on the device.

Request send to device looking at the current consumption via Meross-App:

{
  "payload" : {
    "electricity" : {
      "channel" : 0
    }
  },
  "header" : {
    "messageId" : "MSG-ID",
    "method" : "GET",
    "from" : "http:\/\/IP-HERE\/config",
    "payloadVersion" : 1,
    "namespace" : "Appliance.Control.Electricity",
    "sign" : "SIGn-ID-HERE",
    "triggerSrc" : "iOS",
    "timestamp" : TIMESTAMP-HERE
  }
}

Response from device:

{
    "header": {
        "messageId": "MSG-ID",
        "namespace": "Appliance.Control.Electricity",
        "method": "GETACK",
        "payloadVersion": 1,
        "from": "/appliance/FROM-ID/publish",
        "timestamp": TIMESTAMP,
        "timestampMs": 350,
        "sign": "SIGN-ID"
    },
    "payload": {
        "electricity": {
            "channel": 0,
            "current": 1526,
            "voltage": 2368,
            "power": 253198,
            "config": {
                "voltageRatio": 188,
                "electricityRatio": 100
            }
        }
    }
}

from homebridge-meross.

ChopsKingsland avatar ChopsKingsland commented on June 14, 2024

Im not sure if Homekit itself can show power consumptions in the UI. (Can someone please clarify this? Maybe with an Screenshot how the UI will look with an official Homekit enabled Power-Meter?)
I did a few requests with HTTP-Catcher to my Meross MSS310 - i can get all the power consumption with following request. Also i was able to get all the data which is saved in on the device.

Request send to device looking at the current consumption via Meross-App:

{
  "payload" : {
    "electricity" : {
      "channel" : 0
    }
  },
  "header" : {
    "messageId" : "MSG-ID",
    "method" : "GET",
    "from" : "http:\/\/IP-HERE\/config",
    "payloadVersion" : 1,
    "namespace" : "Appliance.Control.Electricity",
    "sign" : "SIGn-ID-HERE",
    "triggerSrc" : "iOS",
    "timestamp" : TIMESTAMP-HERE
  }
}

Response from device:

{
    "header": {
        "messageId": "MSG-ID",
        "namespace": "Appliance.Control.Electricity",
        "method": "GETACK",
        "payloadVersion": 1,
        "from": "/appliance/FROM-ID/publish",
        "timestamp": TIMESTAMP,
        "timestampMs": 350,
        "sign": "SIGN-ID"
    },
    "payload": {
        "electricity": {
            "channel": 0,
            "current": 1526,
            "voltage": 2368,
            "power": 253198,
            "config": {
                "voltageRatio": 188,
                "electricityRatio": 100
            }
        }
    }
}

This is possible with HomeKit, because the HomeKit Eve app can show it and use it for scene triggers. https://images-na.ssl-images-amazon.com/images/I/81kpO5zCKPL._AC_SX425_.jpg

from homebridge-meross.

lorenzolaiti avatar lorenzolaiti commented on June 14, 2024

Hi! Yeah, it is possible and very useful. I have updated the plugin and I have lost all my work.
I had changed the get status request into the request who return also the ampere, volt, and power info and I wrote this info into text files.
With nod-red I called every 5 minutes this and always with nod-red I set the info into an MQTT server.
With another plugin (https://github.com/arachnetech/homebridge-mqttthing#readme) I saw all in the Eve App!!

node-red

from homebridge-meross.

ChopsKingsland avatar ChopsKingsland commented on June 14, 2024

so, does that mean it is possible for @donavanbecker to add it to a final release of the Homebridge plugin?

from homebridge-meross.

donavanbecker avatar donavanbecker commented on June 14, 2024

See #151

from homebridge-meross.

chris319 avatar chris319 commented on June 14, 2024

I am looking for the same feature, so far I can only see the Smart Plug MSS310 as an "on/off plug" in homekit. I have tried to install this plugin as beta and tried to use force cloud mode, but it can't see the power consumption in homekit or use changes in the consumption for automation scenarios.
Can anybody point me to the right direction here? Is this at all possible with this plugin and homekit? Or would a total custom implementation be required as shown in the node red example above?

from homebridge-meross.

bwp91 avatar bwp91 commented on June 14, 2024

Hi @chris319

You will need to install the Eve HomeKit app, inside this you should find it shows values for power and voltage.

You can use the config to setup a threshold so the 'outlet in use' value is either on or off depending on whether the power is greater than the value you configured. You can use this to setup automations based on whether the outlet is in use depending on the threshold you configured.

Hope this helps,

from homebridge-meross.

chris319 avatar chris319 commented on June 14, 2024

Thank you very much @bwp91! I am just getting into the whole home automation topic and there is a lot to learn. With your helpful comment I was now able to expose the plugs to home using your plugins and then also utilize the plugs in 3rd party apps like Eve or Home+ which provide the additional power consumption data to be used in automation scenarios. :-)

from homebridge-meross.

hatty24 avatar hatty24 commented on June 14, 2024

Hey @bwp91
The topic is already a bit older but I use Homebridge yust since this year and stumble only now on it.

Unfortunately, the EVE app does not show consumption values of my MSS310. I can see the plugs in the app, control them and include them in automations.
Only the consumption values I can not use.

Has there been any change in the components since last year that the consumption display in EVE no longer works or do I have to activate this function somewhere separately?
If it matters, my Homebridge is running via Docker on Synology NAS. All software and firmware are up to date.

It would be great if you could give me a tip

from homebridge-meross.

geinzmrk avatar geinzmrk commented on June 14, 2024

Bump to hatty24's comment - Eve does not show any energy data for meross MSS210P - the meross tool itself on the other hans shows energy consumption properly. Seems like it is a plugin problem

from homebridge-meross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.