Versions
| Key |
Value |
| Package version |
1.0.8 |
| Python Version |
3.11 |
| F@st Router Model |
3890V3 |
| "InternalFirmwareVersion" |
sw18.76.10.13c-9 |
Describe the bug
I am experiencing some issues with 'Sagemcom' integration on Home Assistance. And decided to check how the sagemcom_api on my local machine. I got the python script from the example and can see the issue is the same.
The python script fails with error (in most of cases) : aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected
It happens when the script runs Device/DeviceInfo command. Right before it successfully completes Login. I have compared payloads for the post request with the one my browser makes when I run $.xmo.getValuesTree("Device/DeviceInfo") and found a difference with options value only. So, I changed a bit the sagemcom_api to populate the value and now it is totally the same but in case of browser I always get a response but the script returned some values ONLY once after 100 attempts.. usually -- Server Disconnected error this is payload of POST request
api_host=http://192.168.55.44/cgi/json-req payload={'request': {'id': 1, 'session-id': '1984664181', 'priority': False, 'actions': [{'id': 0, 'method': 'getValue', 'xpath': 'Device/DeviceInfo', 'options': {'capability-flags': {'interface': 'true'}}}], 'cnonce': 0, 'auth-key': '51c050b5adf965d7c94234589723409587230489431fd51754a2e0f3de0b165c88adfb221ffb93292ff1340819034819328413284012384e0e'}}
What else I can check / verify / etc ?
BTW, I have the F@st3890V3 router but I use SHA512 hashing, the MD5 does not work at all in my case, i can see the corresponding error msg in router log..
BTW2, version is still '1.0.1'
[bug]
Versions
Describe the bug
I am experiencing some issues with 'Sagemcom' integration on Home Assistance. And decided to check how the
sagemcom_apion my local machine. I got the python script from the example and can see the issue is the same.The python script fails with error (in most of cases) :
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnectedIt happens when the script runs
Device/DeviceInfocommand. Right before it successfully completesLogin. I have compared payloads for the post request with the one my browser makes when I run$.xmo.getValuesTree("Device/DeviceInfo")and found a difference withoptionsvalue only. So, I changed a bit thesagemcom_apito populate the value and now it is totally the same but in case of browser I always get a response but the script returned some values ONLY once after 100 attempts.. usually --Server Disconnected errorthis is payload of POST requestapi_host=http://192.168.55.44/cgi/json-req payload={'request': {'id': 1, 'session-id': '1984664181', 'priority': False, 'actions': [{'id': 0, 'method': 'getValue', 'xpath': 'Device/DeviceInfo', 'options': {'capability-flags': {'interface': 'true'}}}], 'cnonce': 0, 'auth-key': '51c050b5adf965d7c94234589723409587230489431fd51754a2e0f3de0b165c88adfb221ffb93292ff1340819034819328413284012384e0e'}}What else I can check / verify / etc ?
BTW, I have the F@st3890V3 router but I use SHA512 hashing, the MD5 does not work at all in my case, i can see the corresponding error msg in router log..
BTW2, version is still '1.0.1'
[bug]