Avoid error while gathering Namespace.HUB_SENSOR_TEMPHUM notification#438
Open
impulsio wants to merge 1 commit intoalbertogeniola:0.4.X.Xfrom
Open
Avoid error while gathering Namespace.HUB_SENSOR_TEMPHUM notification#438impulsio wants to merge 1 commit intoalbertogeniola:0.4.X.Xfrom
impulsio wants to merge 1 commit intoalbertogeniola:0.4.X.Xfrom
Conversation
A way to avoid this error :
``
[2026-02-12 10:18:26][WARNING][meross_iot.manager] : Uncaught push notification Namespace.HUB_SENSOR_TEMPHUM. Raw data: {"tempHum": [{"syncedTime": 1770891505, "sample": [[115, 1000, 1770839489, 1770840087], [114, 1000, 1770840087, 1770841881], [113, 1000, 1770841881, 1770842479], [114, 1000, 1770842479, 1770846666], [115, 1000, 1770846666, 1770847862], [114, 1000, 1770847862, 1770849059], [115, 1000, 1770849059, 1770852048], [114, 1000, 1770852048, 1770853843], [112, 1000, 1770853843, 1770854442], [110, 1000, 1770854442, 1770855040], [109, 1000, 1770855040, 1770856235], [108, 1000, 1770856235, 1770857431], [107, 1000, 1770857431, 1770858626], [106, 1000, 1770858626, 1770859224], [107, 1000, 1770859224, 1770859822], [106, 1000, 1770859822, 1770860420], [107, 1000, 1770860420, 1770861018], [106, 1000, 1770861018, 1770863409], [105, 1000, 1770863409, 1770867594], [104, 1000, 1770867594, 1770868790], [105, 1000, 1770868790, 1770869986], [104, 1000, 1770869986, 1770871181], [105, 1000, 1770871181, 1770872377], [104, 1000, 1770872377, 1770875366], [105, 1000, 1770875366, 1770875963], [104, 1000, 1770875963, 1770876561], [105, 1000, 1770876561, 1770877159], [106, 1000, 1770877159, 1770877756], [107, 1000, 1770877756, 1770878952], [108, 1000, 1770878952, 1770879549], [109, 1000, 1770879549, 1770881940], [110, 1000, 1770881940, 1770883734], [111, 1000, 1770883734, 1770884331], [110, 1000, 1770884331, 1770884929], [111, 1000, 1770884929, 1770885527], [110, 1000, 1770885527, 1770886125], [111, 1000, 1770886125, 1770886723], [112, 1000, 1770886723, 1770887321], [111, 1000, 1770887321, 1770891505], [112, 1000, 1770891505, -10000]], "id": "39000E4FC15B", "latestTemperature": 112, "latestHumidity": 1000, "latestTime": 1770891505}]}
[2026-02-12 10:28:23][DEBUG][meross_iot.manager] : Received message from topic /app/2414789/subscribe: b'{"header":{"messageId":"fd7dafbbf471b6a88bb93754e14e6cba","namespace":"Appliance.Hub.Sensor.TempHum","timestamp":1770892103,"timestampMs":645,"triggerSrc":"","payloadVersion":1,"method":"PUSH","sign":"4598ee3e2acc497e4a4929bc1e7c5a84","from":"/appliance/2311244995086662080248e1e9e3e1e2/publish"},"payload":{"tempHum":[{"syncedTime":1770892103,"sample":[[114,1000,1770840087,1770841881],[113,1000,1770841881,1770842479],[114,1000,1770842479,1770846666],[115,1000,1770846666,1770847862],[114,1000,1770847862,1770849059],[115,1000,1770849059,1770852048],[114,1000,1770852048,1770853843],[112,1000,1770853843,1770854442],[110,1000,1770854442,1770855040],[109,1000,1770855040,1770856235],[108,1000,1770856235,1770857431],[107,1000,1770857431,1770858626],[106,1000,1770858626,1770859224],[107,1000,1770859224,1770859822],[106,1000,1770859822,1770860420],[107,1000,1770860420,1770861018],[106,1000,1770861018,1770863409],[105,1000,1770863409,1770867594],[104,1000,1770867594,1770868790],[105,1000,1770868790,1770869986],[104,1000,1770869986,1770871181],[105,1000,1770871181,1770872377],[104,1000,1770872377,1770875366],[105,1000,1770875366,1770875963],[104,1000,1770875963,1770876561],[105,1000,1770876561,1770877159],[106,1000,1770877159,1770877756],[107,1000,1770877756,1770878952],[108,1000,1770878952,1770879549],[109,1000,1770879549,1770881940],[110,1000,1770881940,1770883734],[111,1000,1770883734,1770884331],[110,1000,1770884331,1770884929],[111,1000,1770884929,1770885527],[110,1000,1770885527,1770886125],[111,1000,1770886125,1770886723],[112,1000,1770886723,1770887321],[111,1000,1770887321,1770891505],[112,1000,1770891505,1770892103],[111,1000,1770892103,-10000]],"id":"39000E4FC15B","latestTemperature":111,"latestHumidity":1000,"latestTime":1770892103}]}}'
[2026-02-12 10:28:23][DEBUG][meross_iot.manager] : Message signature OK
[2026-02-12 10:28:23][DEBUG][meross_iot.model.push.factory] : Parsing push notification Appliance.Hub.Sensor.TempHum, payload: {'tempHum': [{'syncedTime': 1770892103, 'sample': [[114, 1000, 1770840087, 1770841881], [113, 1000, 1770841881, 1770842479], [114, 1000, 1770842479, 1770846666], [115, 1000, 1770846666, 1770847862], [114, 1000, 1770847862, 1770849059], [115, 1000, 1770849059, 1770852048], [114, 1000, 1770852048, 1770853843], [112, 1000, 1770853843, 1770854442], [110, 1000, 1770854442, 1770855040], [109, 1000, 1770855040, 1770856235], [108, 1000, 1770856235, 1770857431], [107, 1000, 1770857431, 1770858626], [106, 1000, 1770858626, 1770859224], [107, 1000, 1770859224, 1770859822], [106, 1000, 1770859822, 1770860420], [107, 1000, 1770860420, 1770861018], [106, 1000, 1770861018, 1770863409], [105, 1000, 1770863409, 1770867594], [104, 1000, 1770867594, 1770868790], [105, 1000, 1770868790, 1770869986], [104, 1000, 1770869986, 1770871181], [105, 1000, 1770871181, 1770872377], [104, 1000, 1770872377, 1770875366], [105, 1000, 1770875366, 1770875963], [104, 1000, 1770875963, 1770876561], [105, 1000, 1770876561, 1770877159], [106, 1000, 1770877159, 1770877756], [107, 1000, 1770877756, 1770878952], [108, 1000, 1770878952, 1770879549], [109, 1000, 1770879549, 1770881940], [110, 1000, 1770881940, 1770883734], [111, 1000, 1770883734, 1770884331], [110, 1000, 1770884331, 1770884929], [111, 1000, 1770884929, 1770885527], [110, 1000, 1770885527, 1770886125], [111, 1000, 1770886125, 1770886723], [112, 1000, 1770886723, 1770887321], [111, 1000, 1770887321, 1770891505], [112, 1000, 1770891505, 1770892103], [111, 1000, 1770892103, -10000]], 'id': '39000E4FC15B', 'latestTemperature': 111, 'latestHumidity': 1000, 'latestTime': 1770892103}]}
[2026-02-12 10:28:23][DEBUG][meross_iot.controller.mixins.hub] : msh300hk:4.0.0:5.5.50 handling push notification for namespace Namespace.HUB_SENSOR_TEMPHUM
[2026-02-12 10:28:23][ERROR][meross_iot.manager] : An unhandled exception occurred while handling push notification
Traceback (most recent call last):
File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/manager.py", line 714, in _async_dispatch_push_notification
await dev.async_handle_push_notification(
File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/mixins/system.py", line 69, in async_handle_push_notification
parent_handled = await super().async_handle_push_notification(namespace=namespace, data=data)
File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/mixins/hub.py", line 189, in async_handle_push_notification
parent_handled = await super().async_handle_push_notification(namespace=namespace, data=data)
File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/mixins/hub.py", line 114, in async_handle_push_notification
await subdev.async_handle_subdevice_notification(namespace=namespace, data=subdev_state)
File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/subdevice.py", line 85, in async_handle_subdevice_notification
temp, hum, from_ts, to_ts, unknown = sample
ValueError: not enough values to unpack (expected 5, got 4)
``
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A way to avoid this error :
[2026-02-12 10:18:26][WARNING][meross_iot.manager] : Uncaught push notification Namespace.HUB_SENSOR_TEMPHUM. Raw data: {"tempHum": [{"syncedTime": 1770891505, "sample": [[115, 1000, 1770839489, 1770840087], [114, 1000, 1770840087, 1770841881], [113, 1000, 1770841881, 1770842479], [114, 1000, 1770842479, 1770846666], [115, 1000, 1770846666, 1770847862], [114, 1000, 1770847862, 1770849059], [115, 1000, 1770849059, 1770852048], [114, 1000, 1770852048, 1770853843], [112, 1000, 1770853843, 1770854442], [110, 1000, 1770854442, 1770855040], [109, 1000, 1770855040, 1770856235], [108, 1000, 1770856235, 1770857431], [107, 1000, 1770857431, 1770858626], [106, 1000, 1770858626, 1770859224], [107, 1000, 1770859224, 1770859822], [106, 1000, 1770859822, 1770860420], [107, 1000, 1770860420, 1770861018], [106, 1000, 1770861018, 1770863409], [105, 1000, 1770863409, 1770867594], [104, 1000, 1770867594, 1770868790], [105, 1000, 1770868790, 1770869986], [104, 1000, 1770869986, 1770871181], [105, 1000, 1770871181, 1770872377], [104, 1000, 1770872377, 1770875366], [105, 1000, 1770875366, 1770875963], [104, 1000, 1770875963, 1770876561], [105, 1000, 1770876561, 1770877159], [106, 1000, 1770877159, 1770877756], [107, 1000, 1770877756, 1770878952], [108, 1000, 1770878952, 1770879549], [109, 1000, 1770879549, 1770881940], [110, 1000, 1770881940, 1770883734], [111, 1000, 1770883734, 1770884331], [110, 1000, 1770884331, 1770884929], [111, 1000, 1770884929, 1770885527], [110, 1000, 1770885527, 1770886125], [111, 1000, 1770886125, 1770886723], [112, 1000, 1770886723, 1770887321], [111, 1000, 1770887321, 1770891505], [112, 1000, 1770891505, -10000]], "id": "39000E4FC15B", "latestTemperature": 112, "latestHumidity": 1000, "latestTime": 1770891505}]} [2026-02-12 10:28:23][DEBUG][meross_iot.manager] : Received message from topic /app/2414789/subscribe: b'{"header":{"messageId":"fd7dafbbf471b6a88bb93754e14e6cba","namespace":"Appliance.Hub.Sensor.TempHum","timestamp":1770892103,"timestampMs":645,"triggerSrc":"","payloadVersion":1,"method":"PUSH","sign":"4598ee3e2acc497e4a4929bc1e7c5a84","from":"/appliance/2311244995086662080248e1e9e3e1e2/publish"},"payload":{"tempHum":[{"syncedTime":1770892103,"sample":[[114,1000,1770840087,1770841881],[113,1000,1770841881,1770842479],[114,1000,1770842479,1770846666],[115,1000,1770846666,1770847862],[114,1000,1770847862,1770849059],[115,1000,1770849059,1770852048],[114,1000,1770852048,1770853843],[112,1000,1770853843,1770854442],[110,1000,1770854442,1770855040],[109,1000,1770855040,1770856235],[108,1000,1770856235,1770857431],[107,1000,1770857431,1770858626],[106,1000,1770858626,1770859224],[107,1000,1770859224,1770859822],[106,1000,1770859822,1770860420],[107,1000,1770860420,1770861018],[106,1000,1770861018,1770863409],[105,1000,1770863409,1770867594],[104,1000,1770867594,1770868790],[105,1000,1770868790,1770869986],[104,1000,1770869986,1770871181],[105,1000,1770871181,1770872377],[104,1000,1770872377,1770875366],[105,1000,1770875366,1770875963],[104,1000,1770875963,1770876561],[105,1000,1770876561,1770877159],[106,1000,1770877159,1770877756],[107,1000,1770877756,1770878952],[108,1000,1770878952,1770879549],[109,1000,1770879549,1770881940],[110,1000,1770881940,1770883734],[111,1000,1770883734,1770884331],[110,1000,1770884331,1770884929],[111,1000,1770884929,1770885527],[110,1000,1770885527,1770886125],[111,1000,1770886125,1770886723],[112,1000,1770886723,1770887321],[111,1000,1770887321,1770891505],[112,1000,1770891505,1770892103],[111,1000,1770892103,-10000]],"id":"39000E4FC15B","latestTemperature":111,"latestHumidity":1000,"latestTime":1770892103}]}}' [2026-02-12 10:28:23][DEBUG][meross_iot.manager] : Message signature OK [2026-02-12 10:28:23][DEBUG][meross_iot.model.push.factory] : Parsing push notification Appliance.Hub.Sensor.TempHum, payload: {'tempHum': [{'syncedTime': 1770892103, 'sample': [[114, 1000, 1770840087, 1770841881], [113, 1000, 1770841881, 1770842479], [114, 1000, 1770842479, 1770846666], [115, 1000, 1770846666, 1770847862], [114, 1000, 1770847862, 1770849059], [115, 1000, 1770849059, 1770852048], [114, 1000, 1770852048, 1770853843], [112, 1000, 1770853843, 1770854442], [110, 1000, 1770854442, 1770855040], [109, 1000, 1770855040, 1770856235], [108, 1000, 1770856235, 1770857431], [107, 1000, 1770857431, 1770858626], [106, 1000, 1770858626, 1770859224], [107, 1000, 1770859224, 1770859822], [106, 1000, 1770859822, 1770860420], [107, 1000, 1770860420, 1770861018], [106, 1000, 1770861018, 1770863409], [105, 1000, 1770863409, 1770867594], [104, 1000, 1770867594, 1770868790], [105, 1000, 1770868790, 1770869986], [104, 1000, 1770869986, 1770871181], [105, 1000, 1770871181, 1770872377], [104, 1000, 1770872377, 1770875366], [105, 1000, 1770875366, 1770875963], [104, 1000, 1770875963, 1770876561], [105, 1000, 1770876561, 1770877159], [106, 1000, 1770877159, 1770877756], [107, 1000, 1770877756, 1770878952], [108, 1000, 1770878952, 1770879549], [109, 1000, 1770879549, 1770881940], [110, 1000, 1770881940, 1770883734], [111, 1000, 1770883734, 1770884331], [110, 1000, 1770884331, 1770884929], [111, 1000, 1770884929, 1770885527], [110, 1000, 1770885527, 1770886125], [111, 1000, 1770886125, 1770886723], [112, 1000, 1770886723, 1770887321], [111, 1000, 1770887321, 1770891505], [112, 1000, 1770891505, 1770892103], [111, 1000, 1770892103, -10000]], 'id': '39000E4FC15B', 'latestTemperature': 111, 'latestHumidity': 1000, 'latestTime': 1770892103}]} [2026-02-12 10:28:23][DEBUG][meross_iot.controller.mixins.hub] : msh300hk:4.0.0:5.5.50 handling push notification for namespace Namespace.HUB_SENSOR_TEMPHUM [2026-02-12 10:28:23][ERROR][meross_iot.manager] : An unhandled exception occurred while handling push notification Traceback (most recent call last): File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/manager.py", line 714, in _async_dispatch_push_notification await dev.async_handle_push_notification( File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/mixins/system.py", line 69, in async_handle_push_notification parent_handled = await super().async_handle_push_notification(namespace=namespace, data=data) File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/mixins/hub.py", line 189, in async_handle_push_notification parent_handled = await super().async_handle_push_notification(namespace=namespace, data=data) File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/mixins/hub.py", line 114, in async_handle_push_notification await subdev.async_handle_subdevice_notification(namespace=namespace, data=subdev_state) File "/var/www/html/plugins/MerosSync/resources/.venvs/merosssync/lib/python3.9/site-packages/meross_iot/controller/subdevice.py", line 85, in async_handle_subdevice_notification temp, hum, from_ts, to_ts, unknown = sample ValueError: not enough values to unpack (expected 5, got 4)