MSS310 no sensor readings but switchable
See original GitHub issueVersion of the custom_component
v2.1.1
Configuration
Mosquitto
logins:
- username: mqtt
password: mqtt
- username: 48:e1:XX:XX:XX:XX
password: 0_4684bc65ed8e066290f6ceadcac68b67
- username: 48:e1:YY:YY:YY:YY
password: 0_d47fbc97e0b43b3d1f027562adc425f8
customize:
active: false
folder: mosquitto
certfile: /data/server.crt
keyfile: /data/server.key
require_certificate: false
allow_anonymous: true
port: 8883
cafile: /data/ca.crt
Describe the bug
First of all thanks for all the effort you put into this component 😃 I have some trouble to get it to work with two MSS310, that work with the official App and are able to read the power consumption. In HomeAssistant I can see the device but the sensor readings are always zero. Surprisingly I can switch it on and off without any problems. Any hint on how to fix this is appreciated. Thanks in advance 👍
Debug log
The output I get running mosquitto_sub -h <IP> -u <USER> -P <PASSWORD> -v -t '#'
I’ve noticed that here I get the more values filled in Appliance.System.All than in the trace output.
appliance/2103098878720390845048e1e960d6bb/publish {"header":{"messageId":"9521817f6705e4c4a645422ecfd11ea8","namespace":"Appliance.Control.ToggleX","method":"PUSH","payloadVersion":1,"from":"/appliance/2103098878720390845048e1e960d6bb/publish","timestamp":1033,"timestampMs":727,"sign":"2a61c0d476df5a0a9966b06d43421183"},"payload":{"togglex":[{"channel":0,"onoff":0,"lmTime":1033}]}}
/appliance/2103098878720390845048e1e960d6bb/publish {"header":{"messageId":"80ae164d36546d28222f526cb2653a6a","namespace":"Appliance.Control.ToggleX","method":"PUSH","payloadVersion":1,"from":"/appliance/2103098878720390845048e1e960d6bb/publish","timestamp":1040,"timestampMs":855,"sign":"440612ed77e2331f6f8c2057025baee2"},"payload":{"togglex":[{"channel":0,"onoff":1,"lmTime":1040}]}}
/appliance/2103098878720390845048e1e960d6bb/subscribe {"header": {"messageId": "bbbbb1fe557b4a8cb9864b7bc55003f1", "namespace": "Appliance.System.All", "method": "GET", "payloadVersion": 1, "from": "/appliance/2103098878720390845048e1e960d6bb/publish", "timestamp": 1628230271, "timestampMs": 0, "sign": "865acc3a7ddee084d77a2f0746d89316"}, "payload": {}}
/appliance/2103098878720390845048e1e960d6bb/publish {"header":{"messageId":"bbbbb1fe557b4a8cb9864b7bc55003f1","namespace":"Appliance.System.All","method":"GETACK","payloadVersion":1,"from":"/appliance/2103098878720390845048e1e960d6bb/publish","timestamp":1120,"timestampMs":589,"sign":"51077886a393fa0ca9af3fe6168fe052"},"payload":{"all":{"system":{"hardware":{"type":"mss310","subType":"un","version":"6.0.0","chipType":"rtl8710cf","uuid":"2103098878720390845048e1e960d6bb","macAddress":"48:e1:e9:60:d6:bb"},"firmware":{"version":"6.1.4","compileTime":"2021/02/27-16:55:22","wifiMac":"f0:b0:14:17:78:99","innerIp":"192.168.178.65","server":"192.168.178.45","port":8883,"userId":0},"time":{"timestamp":1120,"timezone":"Europe/Berlin","timeRule":[[1616889600,7200,1],[1635634800,3600,0]]},"online":{"status":1}},"digest":{"togglex":[{"channel":0,"onoff":1,"lmTime":1040}],"triggerx":[],"timerx":[]}}}}
/appliance/2103098878720390845048e1e960d6bb/subscribe {"header": {"messageId": "2d509fcf7cd8416c9bc369e60819a8da", "namespace": "Appliance.Control.Electricity", "method": "GET", "payloadVersion": 1, "from": "/appliance/2103098878720390845048e1e960d6bb/publish", "timestamp": 1628230271, "timestampMs": 0, "sign": "a0386ae8af7e4d8d0c2eef27edf7c538"}, "payload": {}}
/appliance/2103098878720390845048e1e960d6bb/subscribe {"header": {"messageId": "fc056d764d804469ba24d5d0ab822362", "namespace": "Appliance.Control.ConsumptionX", "method": "GET", "payloadVersion": 1, "from": "/appliance/2103098878720390845048e1e960d6bb/publish", "timestamp": 1628230271, "timestampMs": 0, "sign": "c4339dc38ff5b5623f6be8989205217c"}, "payload": {}}
/appliance/2103098878720390845048e1e960d6bb/publish {"header":{"messageId":"2d509fcf7cd8416c9bc369e60819a8da","namespace":"Appliance.Control.Electricity","method":"GETACK","payloadVersion":1,"from":"/appliance/2103098878720390845048e1e960d6bb/publish","timestamp":1120,"timestampMs":793,"sign":"8d662f569a0cd7fb7fb9f292822f5f76"},"payload":{"electricity":{"channel":0,"current":0,"voltage":0,"power":0,"config":{"voltageRatio":188,"electricityRatio":102}}}}
/appliance/2103098878720390845048e1e960d6bb/publish {"header":{"messageId":"fc056d764d804469ba24d5d0ab822362","namespace":"Appliance.Control.ConsumptionX","method":"GETACK","payloadVersion":1,"from":"/appliance/2103098878720390845048e1e960d6bb/publish","timestamp":1120,"timestampMs":831,"sign":"2dc8cc655e187e8a34a3f683880db272"},"payload":{"consumptionx":[]}}
/appliance/2103098878720390845048e1e960d6bb/subscribe {"header": {"messageId": "51470cdd9fbc454980fec11049efa15a", "namespace": "Appliance.Control.Electricity", "method": "GET", "payloadVersion": 1, "from": "/appliance/2103098878720390845048e1e960d6bb/publish", "timestamp": 1628230289, "timestampMs": 0, "sign": "232c578327b7233e6df632731f496ea6"}, "payload": {}}
/appliance/2103098878720390845048e1e960d6bb/publish {"header":{"messageId":"51470cdd9fbc454980fec11049efa15a","namespace":"Appliance.Control.Electricity","method":"GETACK","payloadVersion":1,"from":"/appliance/2103098878720390845048e1e960d6bb/publish","timestamp":1137,"timestampMs":790,"sign":"bd85d8334d5c9c91bf86ed19d49f2046"},"payload":{"electricity":{"channel":0,"current":0,"voltage":0,"power":0,"config":{"voltageRatio":188,"electricityRatio":102}}}}
/appliance/2103098878720390845048e1e960d6bb/subscribe {"header": {"messageId": "a21708c8edf54323896e7a4690fa2a7f", "namespace": "Appliance.Control.Electricity", "method": "GET", "payloadVersion": 1, "from": "/appliance/2103098878720390845048e1e960d6bb/publish", "timestamp": 1628230319, "timestampMs": 0, "sign": "e2fdda8b7069eca0fd0f2741725ca760"}, "payload": {}}
/appliance/2103098878720390845048e1e960d6bb/publish {"header":{"messageId":"a21708c8edf54323896e7a4690fa2a7f","namespace":"Appliance.Control.Electricity","method":"GETACK","payloadVersion":1,"from":"/appliance/2103098878720390845048e1e960d6bb/publish","timestamp":1167,"timestampMs":793,"sign":"9dd4a9c9231fd147f19d34854171991b"},"payload":{"electricity":{"channel":0,"current":0,"voltage":0,"power":0,"config":{"voltageRatio":188,"electricityRatio":102}}}}
And here the output from the debug trace
2021/08/06 - 08:10:56 auto GETACK Appliance.System.All {"system": {"hardware": {"type": "mss310", "subType": "un", "version": "6.0.0", "chipType": "rtl8710cf", "uuid": "", "macAddress": ""}, "firmware": {"version": "6.1.4", "compileTime": "2021/02/27-16:55:22", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 328, "timezone": "", "timeRule": []}, "online": {"status": 1}}, "digest": {"togglex": [{"channel": 0, "onoff": 0, "lmTime": 95}], "triggerx": [], "timerx": []}}
2021/08/06 - 08:10:56 auto GETACK Appliance.System.Ability {"Appliance.Config.Key": {}, "Appliance.Config.WifiList": {}, "Appliance.Config.Wifi": {}, "Appliance.Config.Trace": {}, "Appliance.System.All": {}, "Appliance.System.Hardware": {}, "Appliance.System.Firmware": {}, "Appliance.System.Debug": {}, "Appliance.System.Online": {}, "Appliance.System.Time": {}, "Appliance.System.Clock": {}, "Appliance.System.Ability": {}, "Appliance.System.Runtime": {}, "Appliance.System.Report": {}, "Appliance.System.Position": {}, "Appliance.System.DNDMode": {}, "Appliance.Control.Multiple": {"maxCmdNum": 5}, "Appliance.Control.ToggleX": {}, "Appliance.Control.TimerX": {"sunOffsetSupport": 1}, "Appliance.Control.TriggerX": {}, "Appliance.Control.Bind": {}, "Appliance.Control.Unbind": {}, "Appliance.Control.Upgrade": {}, "Appliance.Control.ConsumptionX": {}, "Appliance.Control.Electricity": {}, "Appliance.Control.ConsumptionConfig": {}, "Appliance.Digest.TriggerX": {}, "Appliance.Digest.TimerX": {}}
2021/08/06 - 08:10:59 http GET Appliance.System.All {}
2021/08/06 - 08:10:59 http GET Appliance.Control.Electricity {}
2021/08/06 - 08:10:59 http GET Appliance.Control.ConsumptionX {}
2021/08/06 - 08:10:59 http GETACK Appliance.System.All {"all": {"system": {"hardware": {"type": "mss310", "subType": "un", "version": "6.0.0", "chipType": "rtl8710cf", "uuid": "", "macAddress": ""}, "firmware": {"version": "6.1.4", "compileTime": "2021/02/27-16:55:22", "wifiMac": "", "innerIp": "", "server": "", "port": "", "userId": ""}, "time": {"timestamp": 1107, "timezone": "Europe/Berlin", "timeRule": [[1616889600, 7200, 1], [1635634800, 3600, 0]]}, "online": {"status": 1}}, "digest": {"togglex": [{"channel": 0, "onoff": 1, "lmTime": 1040}], "triggerx": [], "timerx": []}}}
2021/08/06 - 08:10:59 http GETACK Appliance.Control.Electricity {"electricity": {"channel": 0, "current": 0, "voltage": 0, "power": 0, "config": {"voltageRatio": 188, "electricityRatio": 102}}}
2021/08/06 - 08:10:59 http GETACK Appliance.Control.ConsumptionX {"consumptionx": []}
Issue Analytics
- State:
- Created 2 years ago
- Comments:50 (14 by maintainers)
Top Results From Across the Web
Meross MSS310 not configurable in Energy Dashboard
The switch, DND, and wifi signal work fine, although I have not been able to get either to report any energy usage data...
Read more >Meross smart plug switching and monitoring - Reddit
Hey just got 2 Meross smart plugs mss310, I connected one to my Raspberry PI ... the plug without using the mobile app...
Read more >Meross Home Control - Revisited - Again - Scargill's Tech Blog
Setting up the UK MSS310 Smart Switch was easy. Out of the box, the smart plug went into my wall socket and lit...
Read more >Meross wi-fi Plug - Domoticz
The goal is to create a python script to send energy data from Meross to a Domoticz virtual sensor. Thanks Cheers Clement. You...
Read more >4 Packs meross Smart Plug (Works with HomeKit Siri, Amazon ...
@YellowKnight: Of the reed switch sensor? ... I started with one TP-link plug (decent but not flashable), then Aldi Bauhn flashable cheapies ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all, I appreciate you keeping me in the loop, but I’m on this thread in error. Just wanted to let you know.
@userMak I’m not an expert so I don’t know the details. However, with the certificate created by the Duckdns add-on, I could not connect with the same error message as you, but by using the certificate created by the procedure myself, I can connected.
I think it doesn’t matter what machine you make the certificate on, and it doesn’t take too long, so it’s worth a try.
P.S. I thought
-days 360
was short, so I chose-days 3650
.