-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSS310 smart plug doesn't transmit power consumption data to home assistant #404
Comments
Good evening - I'm also having this issue. Running VMware VM on ESXi. Home Assistant 2022.11.4 Local Broker 0.0.1-rc0 I'm happy to do any testing or provide log dumps. Perhaps of note - I did experience the issue with pairing these devices repeatedly during setup - I ended up setting up a special DHCP lease for them pointing to a DNS view that resolves all the meross.com addresses to the Home Assistant server and that solved that problem for me. |
I am also having this error. The actual measurement of power, voltage, current, ... is the last one received. I think I have this problem one or two weeks ago. Recently I saw that MEROSS updated the firmware from my lightbulbs and maybe the MS310 also??? |
Having the same issue here. I can turn Dnd on and off but no power data is coming through. |
Hello, |
Did it solve the problem the LAN broker? Did it made lose the conection to meross cloud? |
The problem occures with the LAN broker, I never tried with the meross cloud because I want to keep everything in my LAN. Restarting the broker doesn't solve the problem, hope that someone can find the solution soon. |
Did you try to reboot the sistem, not only the broker? |
Sure, I rebooted Home Assistant a plenty of time but unfortunately nothing changed. |
Same problem here. Home Assitant tell me this: Expected data source not listed Open an issue with the author of the integration and link them to https://developers.home-assistant.io/docs/core/entity/sensor#long-term-statistics. |
Same here, no update for this issue? |
I would like to add my voice to the masses here. In the meantime I will use the LAN addon, but it's not 100% local since I have to keep the devices paired with the Meross for them to work... |
Same issue |
Hi, for me also no power data is transmitted. Home Assistant 2023.7.1 MerossHA/1.2.8 Meross Local Broker Addon 2 devices mss310 power switch is working, but no power (w) data is shown "payload":{"electricity":{"channel":0," the smart plugs are in a separate wifi network without access to the internet, all is completely local. thank you for your incredible work, when this last bit is working, and i'm cloud free from meross, then i will support your work also with some money :) greetings from germany |
I Also have the issue. |
Homeassistant deprecated the power and energy in the switch entity. I've pushed a pull request where I've added an energy sensor for plug with energy counter here: #460 to be tested. |
Sorry my message was split in two, yet there are both linked, I pushed code changes to the plugin in order to add energy sensor for plug with energy counter here: #460 |
1.2.10 integrates power transmission can we close this issue ? |
Yup! Closing! |
@benoitm974 thank you very much for this implementation. @albertogeniola unfortunately I can't update because I'm using the Local Add-On plugin and this version is not compatibile with it. Do you have any idea when you will release the new version also compatible with the Local Add On? Thanks |
Last version is now compatible with the updated addon. Just update the addon first and then update the meross component. Please let me know if that works as expected! |
@albertogeniola I've updated the local addon to version 0.0.1-alpha49 then I've updated the meross component to the last available version (1.2.10) but I got an authentication error at the startup and all devices doesn't work anymore. Am I missing something? Thanks |
All your devices should be working. You only need to reconfigure the addon via the wizard. Just put back your original login |
I've done it but I still get "Invalid credentials". The local broker seems to works properly because all my devices are online |
Hi @adicrescenzo , |
Hi, same problem here. Installed local only, switch works (on/off) but all sensors values are 0. 3 plugs mss310 and all 3 with same behaviour. Searching the web I've seen that mss310 reports 0 in sensors when it does not get NTP time: krahabb/meross_lan#55 If any log may be of any help I'd be glad to post. |
Same. I did not want any of my 11 meross plugs talking to the internet at all, so I added a firewall rule to totally block them and ran into this issue that they would not work without getting the 'time'. After a bit of wireshark-ing I found the NTP servers they were trying to contact, which when allowed through the firewall resolved the problem. Still, I do not want them talking to the Internet, so I blocked them again and added a local DNS entry for my own NTP servers under the name of the ones the plugs wanted to connect with, hoping to spoof/redirect the NTP requests to my own NTP server. - This failed. Call me paranoid... but... Without being able to accept being provided an alternative NTP server (in my limited testing) that means I cannot isolate them from the internet. I did not do any further decoding of the transmitted packets as I gave up with the meross plugs as being suspicious and untrustable. I now only use Z-Wave and Zigbee plugs. |
The thing is they were working fine (reporting power and energy consumption) under the same network/firewall under merosss app and cloud. Once paired with local MQTT sensors report 0. I have a pihole dns in my network, so could you provide the NTP server names to try if whitelisting them makes it work? Thanks |
Check: bytespider/Meross#53 |
maybe I'm doing something wrong... looking into MQTT logs there are almost zero GETACK messages... bunch of GET but no GETACK. I've seen one GETACK message, Appliance.System.All when turning on/off the plug. There is a SET message, then a PUSH, then a GET and then the GETACK. But no more ACKs: |
One detail: I've used Custom Pairer app to pair devices to Meross Local Broker Addon |
@erpayo I believe your probblem is not related to the original issue, nor to the Invalid Credentials one. @RaoulSargent : I confirm NTP is necessary. Please have a look at here. @adicrescenzo , can you provide a screenshot of the "Invali Credentials" problem? Also, can you please provide the logs from HA when the issue occurs? You should see the merossIot low-level library printing the authentication error. |
@albertogeniola sure, these are the screenshots: |
Ok looks like the credentials upgrade was not successful. So, you need to reset them. To do so, do as follows:
Then, click "I have installed the App". At this point, open another tab and try again the login via the Meross component. That should make it. If does not, please collect the logs from the "status" panel of the addon and post or here. Let us know! |
Hi @adicrescenzo , Thanks. Please first upgrade the meross component via hacs, it looks like you are not using the latest version. Secondly, please retry the credentials upgrade process and attach the logs you find into the "local api" section under the "status menu" of the local addon. Then do the same when trying to login. Thanks! |
Attached you can find the logs. Meross component is updated to the last available version, please check the attached screenshot. home-assistant_meross_cloud_2023-11-07T06-51-22.412Z.log |
Hi @adicrescenzo , looking at the logs here's what I find. In particular, the credentials update action fails because of the following. Update credentials call
It looks like you are attempting to federate with Meross cloud using the default meross@local account. That won't work: the meross@local account is not valid for Meross cloud. If you want to federate with Meross, you need to use your Meross credentials (the same you would use on the official Meross mobile App). Instead, if you don't want to federate with Meross, you can still use the same meross@local account, but you should uncheck the "Enable Meross Link" and then upgrade your credentials again. |
Ok clear, I don't want to use the Meross Cloud but just the Local Broker. I tought that the meross link should be enabled to do so. I'll retry this evening and I'll let you know. Can I change the password without pair again all my devices to the Local Broker? Because now everyone can see my password :) Thanks |
The password is hashed, but I suggest you to change it anyways.
In any case, you can update your user's password without impacting the
devices.
Al
…On Tue, Nov 7, 2023, 11:43 adicrescenzo ***@***.***> wrote:
Hi @adicrescenzo <https://github.com/adicrescenzo> ,
looking at the logs here's what I find. In particular, the credentials
update action fails because of the following.
*Update credentials call*
PUT /_admin_/configuration HTTP/1.0" 200 -
2023-11-07 06:47:19.373262067 ERROR:HttpApiError: CODE_WRONG_EMAIL
2023-11-07 06:47:19.372346676 ERROR:Received non-ok API status code: CODE_WRONG_EMAIL. Failed request to API. Response was: {'apiStatus': 1008, 'sysStatus': 0, 'info': 'Email unregistered', 'timestamp': 1699339639, 'data': {}}
It looks like you are attempting to federate with Meross cloud using the
default ***@***.*** account. That won't work: the ***@***.*** account
is not valid for Meross cloud. If you want to federate with Meross, you
need to use your Meross credentials (the same you would use on the official
Meross mobile App).
Instead, if you don't want to federate with Meross, you can still use the
same ***@***.*** account, but *you should uncheck the "Enable Meross
Link"* and then upgrade your credentials again.
Ok clear, I don't want to use the Meross Cloud but just the Local Broker.
I tought that the meross link should be enabled to do so. I'll retry this
evening and I'll let you know. Can I change the password without pair again
all my devices to the Local Broker? Because now everyone can see my
password :)
Thanks
—
Reply to this email directly, view it on GitHub
<#404 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDO7C6XOP6PCIITXD46W6TYDIGGBAVCNFSM6AAAAAASKGN67WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJYGI2TGNRZG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@albertogeniola thanks to your suggestions I've just paired successfully the Meross IOT Integration with the Local Broker Addon but I can't see any devices even if their status is "online" in the Local Broker. Is anything else that should I do? Thanks |
If it can help I can see that data has been received by the Local Broker, in fact in the Local Agent logs I have plenty of this row: `2023-11-09 19:49:39.229261876 DEBUG:Local MQTT: received message on topic /appliance/2208024098407751080148e1e99cfc0e/subscribe: b'{"header":{"from":"/app/1-618025f7db6cd99e7f87a42f2d823be0/subscribe","messageId":"2a1e573f6f451c59bcf061834e09709a","method":"GET","namespace":"Appliance.Control.Electricity","payloadVersion":1,"sign":"b0a1f62dd0c29d12b348c965a7c03c72","timestamp":1699559379,"triggerSrc":"Android","uuid":"2208024098407751080148e1e99cfc0e"},"payload":{"channel":0}}' 2023-11-09 19:49:38.988844409 DEBUG:Local MQTT: received message on topic /appliance/2208023396064351080148e1e99cf1cb/subscribe: b'{"header":{"from":"/app/1-618025f7db6cd99e7f87a42f2d823be0/subscribe","messageId":"bdf5cea7d08ec5cf73f653bcff42ef77","method":"GET","namespace":"Appliance.Control.ConsumptionX","payloadVersion":1,"sign":"be326ca8378d3aae51a95dedb79f16a5","timestamp":1699559379,"triggerSrc":"Android","uuid":"2208023396064351080148e1e99cf1cb"},"payload":{"channel":0}}' 2023-11-09 19:49:38.792052714 DEBUG:Local MQTT: received message on topic /appliance/2208024516145751080148e1e99d063a/subscribe: b'{"header":{"from":"/app/1-618025f7db6cd99e7f87a42f2d823be0/subscribe","messageId":"9dc0f42c65441b191325a100cc115d87","method":"GET","namespace":"Appliance.Control.ConsumptionX","payloadVersion":1,"sign":"86046f3aa22ff084b5d7aeee40015357","timestamp":1699559379,"triggerSrc":"Android","uuid":"2208024516145751080148e1e99d063a"},"payload":{"channel":0}}'` |
I have the same issue. My Local Agent log also shows the same messages as adicrescenzo already posted
I tried connecting to MQTT with MQTT Explorer to see if any messages are getting through, but if I use the same credentials as in the Local Broker setup, I get
|
Describe the bug
The smart plug MSS310 doesn't transmit any data related to the power consumption (current, voltage and power)
Your environment
HomeAssistant version: Supervisor 2022.11.2
Hassio Version (if applicable): 9.3
Hardware environment: Virtual Machine running on Proxmox
I'm using the Meross Local Broker, the device is correctly paired and I can switch it on and off from homeassistant but there aren't any data related to the power consumption:
Logs taken from the Local Broker
MQTT Tab
Local Agent Tab
The text was updated successfully, but these errors were encountered: