-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Unsupported model: F@ST F5359 / KPN Box 12 #19
Comments
When you are logged in, do you see any XHR requests in DevTools -> Network? See https://stackoverflow.com/questions/1820927/request-monitoring-in-chrome. |
Yes, I see json-req: |
@geert36 I am not sure how to debug this, do you have some Python knowledge? It seems that you have the JSON-REQ API, however it could be that you need Have you tried setting it up in Home Assistant or directly via the Python test script? What kind of error do you see in your logs. |
I don't have any Python knowledge. But if is just running some code, I think I can manage it. Yes, already tried to set it up in Home Assistant. I tried |
If you login, will it do a HTTPS request to |
Yes, correct, |
@geert36 could you give https://github.com/iMicknl/ha-sagemcom-fast/archive/refs/heads/feature/add_ssl_support.zip a try? Extract this file and place |
Tried with the new files, but get the following error: |
@geert36 it should install the development version, that includes this fix, however it seems that this is not working in your install. I will see if I can prepare it in another way.. |
@geert36 could you give it a new try? Just download the same zip folder again and repeat the same steps :). Make sure you select Uses SSL certificate! |
Hi Mick, thanks for the update. This one works with the SHA512 encryption! I didn't check any of the check boxes (there is no text behind the check boxes). |
@geert36 that is weird, it should only work with the SSL check box selected. What did you fill in as host? Could you reboot and try it again + share a screenshot of your the 'new integration' form popup? I will make sure we catch |
@geert36 I just published a new version (same URL as before). In your case, you should be able to select 'Uses an SSL certificate': Please let me know if it works or if you have any errors in the log. |
I think you face the I wonder if this session will be killed after some time, thus that it could work after a day or so... |
Short after taking the screenshot of previous post, fetching of data succeeded: |
But does it work? :-). Did it create devices / entities? |
Hmm no, unfortunately not. Still no devices /entities :( How can I help you to solve this? |
'There hasn't been any activity on this issue recently. Is this issue still present? |
The main issue with this device (besides the SSL requirement) is that querying Querying individual values does work (as does
I'm just not sure if this would work for all other devices supported by this integration as well. Otherwise maybe this could be a toggle in the setup just like SSL support, what do you think? I'm also wondering if there are more new Sagemcom F@st devices with this issue, and if perhaps it should be addressed in python-sagemcom-api instead? |
Another issue is related to the As this integration does not log out from the admin session, it can effectively lock you out from using the modem web interface because it's scanning every 10 seconds (by default). It would be great if the logout API command ( |
I created a very simplistic pull request that fixes the main issue. This does not solve the MaximumSessionCount issue, but it does make the device work in Home Assistant. I got the MaximumSessionCount error on the first setup attempt, but devices started to show up a few minutes later. You can try it out in my fork (merged it to |
Any progress on this? |
@rhpijnacker unfortunately I haven't had much time lately to work on this integration. I would be happy to release a new version, if someone has time to help out a bit. |
@iMicknl I send some PRs. |
Hi guys, happy new year first of all! I'd be happy to test the integration for the KPN box 12. I have it at home, and have tried to get it working by checking the pending pull requests, but I havent got it working yet. |
@davidrustingha Happy new year to you too. |
@rhpijnacker well I tried installing the current version on this repo, that gives me the 'Failed to connect, please try again' error. I've installed the update mentioned here, it loads properly, but then I get the 'Maximum session count reached' error. It does not create entities also.
When I rebooted after adding a debug log output I got this error:
After a disable/enable and reboot I get the session count error again. What can I do from here? |
I have also tried to setup @copini's version, but when I fill out my information during setup it exits with the session count error before it sets up EDIT: EDIT 2: |
So, what you'll need is:
If you want, you could use the merge branch. This contains both PRs. For the KPN Box v12 you will need to select SHA512 and check the "Uses a SSL-certificate" option. |
As I understood it the merge branch had all the PR's, right? After adding that it gives me this error This error originated from a custom integration.
|
Looks like you're missing iMicknl/python-sagemcom-api#107. Are you sure you are using the latest sagemcom-api library from git? (Not the one from PyPI.) @iMicknl, would you mind publishing this, so we can just update the dependency? |
I checked and I have version 1.0.5 installed, that should be the most recent version according to the github repo https://github.com/iMicknl/python-sagemcom-api EDIT: |
Version 1.0.5 indeed does not contain the If you still get the error that "object has no attribute 'logout'", then it isn't picking up the updated version of client.py. |
Im pretty sure I have. Installed it with It either gives me the session count error or the logout error. I can't get past the initial set up. |
@rhpijnacker I tried to publish 1.06, but the automated pipelines are not working currently, thus I need to do some CI/CD updates before I am able to publish. |
Oh cool. I'm new to all this (Home Assistant, python, pip, etc.) so good to know how to handle dependencies. |
Thanks for the latest update @iMicknl ! |
Are you sure that is the right URL and port? It seems it can not connect. @rhpijnacker could perhaps help. I updated the underlying API a bit, so that new changes can be merged faster :-). Apologies for the delays. |
Yes still using the same URL and port. When using the merge of @rhpijnacker and changing sagemcom api to 1.0.6, it is still working. |
@geert36 Looks like @iMicknl did not yet merge my changes, or the SSL support changes. |
@rhpijnacker I will probably remove the log out after every request as the default option, but move it to the options flow. I believe it worked in your case, but you weren't able to open the normal router interface at the same time? It is way more resource friendly to keep the session open, and in my case, the current logout() way does even break the integration. Apparently my model doesn't like to login/logout that frequent. Would it be fine to have this as an option? |
@iMicknl If it causes problems for other integrations, then it makes a lot of sense to make this optional. If you want me to test out your changes, then feel free to let me know. |
hey mick, do you know if you want to login at the ip you can use http://192.168.2.254/2.0/gui/#/login/ instead of mijnmodem.kpn. this will bypass the redirection to mijnmodem.kpn. |
I recently got the Sagemcom box F@ST F5359. It is the new modem distributed by KPN known as the Box 12.
I tried to get some more information with executing
$.xmo.getValuesTree("Device/DeviceInfo");
in the web console, this results in nothing.Is it possible to support this device? Please let me know if you need more information.
I want to use it for presence detection in Home Assistant.
Model information
The text was updated successfully, but these errors were encountered: