meross-homeassistant: MSS310 smart plug doesn't transmit power consumption data to home assistant
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
2022-11-23 12:59:03.744997601 Config loaded from /etc/mosquitto/mosquitto.conf.
2022-11-23 12:59:03.744996080 mosquitto version 2.0.10 starting
2022-11-23 07:06:08.100763812 time="2022-11-23T08:06:08+01:00" level=info msg="error code: 401"
2022-11-23 07:06:07.318829881 time="2022-11-23T08:06:07+01:00" level=info msg="No cache set."
2022-11-23 07:06:07.318829221 time="2022-11-23T08:06:07+01:00" level=info msg="registered superuser checker: files"
2022-11-23 07:06:07.318811531 time="2022-11-23T08:06:07+01:00" level=info msg="registered user checker: files"
2022-11-23 07:06:07.318808981 time="2022-11-23T08:06:07+01:00" level=info msg="registered acl checker: files"
2022-11-23 07:06:07.318806491 time="2022-11-23T08:06:07+01:00" level=info msg="registered superuser checker: http"
2022-11-23 07:06:07.318803481 time="2022-11-23T08:06:07+01:00" level=info msg="registered user checker: http"
2022-11-23 07:06:07.318791521 time="2022-11-23T08:06:07+01:00" level=info msg="registered acl checker: http"
2022-11-23 07:06:07.318788131 time="2022-11-23T08:06:07+01:00" level=info msg="Backend registered: Files"
2022-11-23 07:06:07.318738341 time="2022-11-23T08:06:07+01:00" level=warning msg="unknown or empty hasher, defaulting to PBKDF2"
2022-11-23 07:06:07.318737411 time="2022-11-23T08:06:07+01:00" level=info msg="Backend registered: HTTP"
2022-11-23 07:06:07.318720901 time="2022-11-23T08:06:07+01:00" level=warning msg="unknown or empty hasher, defaulting to PBKDF2"
2022-11-23 07:06:07.309805032 [08:06:07] INFO:
Starting mosquitto...
2022-11-23 07:06:07.309135398 [08:06:07] INFO:
Waiting for acl file...
2022-11-23 07:06:07.308414184 [08:06:07] INFO:
Waiting for auth file...
2022-11-23 07:06:06.801637037 [08:06:06] INFO:
Waiting for local dev server...
2022-11-23 07:06:06.740919974 Registered to /org/freedesktop/resolve1/dnssd/meross_5flocal_5fmqtt
2022-11-23 07:06:06.740919414 Service registered in /org/freedesktop/resolve1/dnssd/meross_5flocal_5fmqtt
2022-11-23 07:06:06.740918454 Attempting a new registration...
2022-11-23 07:06:06.740917894 Service meross_local_mqtt unregistered.
2022-11-23 07:06:06.740917194 Unregistering '/org/freedesktop/resolve1/dnssd/meross_local_mqtt'
2022-11-23 07:06:06.740916024 Unregistering it...
2022-11-23 07:06:06.740914604 Service 'meross_local_mqtt' already exists.
2022-11-23 07:06:06.740858842 Requested service registration for 'meross_local_mqtt'
Local Agent Tab
2022-11-24 10:15:50.982419259 DEBUG:Local MQTT: received message on topic /appliance/2208024516145751080148e1e99d063a/subscribe: b'{"header":{"from":"/app/1-810c498aaa14036ea816e414156d289f/subscribe","messageId":"c183df7a01da09493515d742b8d878c3","method":"GET","namespace":"Appliance.Control.Electricity","payloadVersion":1,"sign":"a572d166d731a39cedc2c4164828bcc2","timestamp":1669284951,"triggerSrc":"Android","uuid":"2208024516145751080148e1e99d063a"},"payload":{"channel":0}}'
2022-11-24 10:15:21.022904537 DEBUG:Local MQTT: received message on topic /appliance/2208024516145751080148e1e99d063a/subscribe: b'{"header":{"from":"/app/1-810c498aaa14036ea816e414156d289f/subscribe","messageId":"b64750a86f82412f597054bdb50c3a21","method":"GET","namespace":"Appliance.Control.Electricity","payloadVersion":1,"sign":"5ec4d3ac128fe00e0d4ffd1a564f4518","timestamp":1669284921,"triggerSrc":"Android","uuid":"2208024516145751080148e1e99d063a"},"payload":{"channel":0}}'
2022-11-24 10:15:20.981978213 DEBUG:Local MQTT: received message on topic /appliance/2208024516145751080148e1e99d063a/subscribe: b'{"header":{"from":"/app/1-810c498aaa14036ea816e414156d289f/subscribe","messageId":"96a95489e3d887ceab2f82b3ad0f6316","method":"GET","namespace":"Appliance.Control.Electricity","payloadVersion":1,"sign":"3631aaf360ed0260fe32d2fe23a09652","timestamp":1669284921,"triggerSrc":"Android","uuid":"2208024516145751080148e1e99d063a"},"payload":{"channel":0}}'
2022-11-24 10:14:51.021690704 DEBUG:Local MQTT: received message on topic /appliance/2208024516145751080148e1e99d063a/subscribe: b'{"header":{"from":"/app/1-810c498aaa14036ea816e414156d289f/subscribe","messageId":"24260f3324e76ff46eb24c09ea877452","method":"GET","namespace":"Appliance.Control.Electricity","payloadVersion":1,"sign":"5ca6d32853f5c9b6c3f5b48246ad11b3","timestamp":1669284891,"triggerSrc":"Android","uuid":"2208024516145751080148e1e99d063a"},"payload":{"channel":0}}'
2022-11-24 10:14:50.982346471 DEBUG:Local MQTT: received message on topic /appliance/2208024516145751080148e1e99d063a/subscribe: b'{"header":{"from":"/app/1-810c498aaa14036ea816e414156d289f/subscribe","messageId":"a64551c0c401d12290a822916b240c6c","method":"GET","namespace":"Appliance.Control.Electricity","payloadVersion":1,"sign":"53ebb86b6c61912c74c0235abd7ee840","timestamp":1669284891,"triggerSrc":"Android","uuid":"2208024516145751080148e1e99d063a"},"payload":{"channel":0}}'
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 47 (13 by maintainers)
@erpayo I believe your probblem is not related to the original issue, nor to the Invalid Credentials one. Please open a separate issue for that on the local-addon repository.
@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.
Same problem here. Home Assitant tell me this:
Expected data source not listed You’re configuring a statistic but you couldn’t find your source in the dropdown? That’s caused by a bug in the integration providing the entity. Integrations need to configure their entities correctly so Home Assistant knows that we need to track statistics for it and how.
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.