Sagemcom router support

@elfstone since the last update there are some bugs in python-sagemcom-api, which break the home assistant integration for my Speedport, I already created a pull request.

Therefore, you also need to edit the files as seen in the issue/pull request.

I missed your PR, but I will merge and release it now. Unfortunately I haven’t had much time lately to work on this integration, due to my work on other integrations, and since I don’t really use this myself.

Last release indeed added some bugs since some contributed code was only tested on a single device.

@M4D1NG3R , @imick: Thanks for your fast replies, but I’m still a bit lost.
I updated “ha-sagemcom-fast” to master via HACS, but this only includes the change about the reboot - and my setup still fails. Do I also need to install “python-sagemcom-api” myself? It’s not listed as a dependency in “ha-sagemcom-fast” - documentation.
Sorry, I’m still quite new to homeassistant, and especially to dealing with custom components and HACS.

Edit: I’ve looked a bit into the code, and I think that python-sagemcom-api is imported via python, so it’s a requirement. Maybe this should be mentioned in the doc as well? But I’m still unsure on how to install the api-package. The documentation says pip, but after googling pip and Homeassistant, I read that pip should not be used as updates will be overwritten with HA-updates. Is there a way to install the API via HACS as well?

@elfstone with the new updates, it seems to work for me, please wait until the update is released.

After the update:

  1. remove integration if installed
  2. remove integration for HACS
  3. restart HA
  4. install Sagemcom custom integration from HACS version==0.2.6 (or newer)
  5. Restart HA
  6. install integration from integration page (username is admin for my Speedport)

Next time, you are welcome to approach me as a tester (at least for the Speedport Pro).

1 Like

Thanks! Is the integration at the moment usuable? Or do you miss some important features / face bugs.

The reason why I didn’t really pursue this eventually, is the usage. This is a very small niche, and analytics show that only 12 users are using the integration. (see https://analytics.home-assistant.io/custom_integrations.jsonsagemcom_fast domain.

Version 0.2.6 works fine for me. But I mostly use it for a daily reboot of my router due to connectivity problems with the DSL/LTE combi I use.
The presence detection seems to work, but since I do not rely on it, I can’t guarantee that it will work perfectly.

Regarding the usage: I think this is because most of the users do not know, that the integration is compatible with Telekom (Speedport) routers.

I do not know much about how the search function in HACS works, but maybe you can add some router manufactures/providers to the description.

This way, the users would know that this integration enables compatibility with lots of routers:

  • Optus
  • Proximus
  • Delta / Zeelandnet
  • KPN
  • Bell
  • BT
  • Telia
  • MásMóvil
  • Telekom
    … and probably many more.

Edit: I just noticed that the repo cannot be found at all via the search.
Maby you could add it to HACS
This way, many more people would benefit from your great work!

Hi,
thanks for the new release, I got it to work with 0.2.6. as well. For the record: the HACS updater works like a charm in this case, no need to install/reinstall the integration, just hit the update button in HACS and restart.

The only thing I’m struggling with is presence detection events: When I go to the integration, select a device and create an automation, I only get “XXX leaves a zone” or “XXX enters a zone” as suggestions, while “XXX is home” or “XXX is not home” is only available as condition.

However, the automation does not trigger in my case when I turn on/off wifi on my phone. When I look at the states/events in HomeAssistant I can see the device switching from “home” to “not home” though, so I can just create an automation by looking at those events. I was just a bit confused that the suggestions in Visual Editor don’t seem to work.

@imick For me this integration definitely looks usable and I’m very happy it exists. I agree with @M4D1NG3R that it needs a bit more marketing, the only way I found out about it in the first place was his comment here in the thread suggesting that it also supports the Telekom Speedport Pro.

Makes sense, my initial goal was to add it to core and add discovery (ssdp / dhcp), however I don’t think the integration is ready for that yet. (and I don’t have time currently to polish this).

A good first step would be to include it in the default HACS repositories indeed, and see from there. My understanding would be that Sagemcom F@st was pretty self explanatory, but good to understand that e.g. the Telekom Speedport Pro doesn’t mention the original manufacturer.

Would this potentially work for the KPN Box 12 (newest dutch KPN router, so probably a pretty huge user base). Apparently that’s a Sagemcom F5359. Don’t have it yet, so can’t test it.

Not sure, I don’t have that one as well! However, I don’t spend a lot of time on the development currently since there are only 12 active users of this integration. :wink:

However, everything is set up on GitHub to accept contributions and to merge and release them quickly.

Just noticed this issue on GitHub: Unsupported model: F@ST F5359 / KPN Box 12 · Issue #19 · iMicknl/ha-sagemcom-fast · GitHub

Thanks!

1 Like

Cool! In that case it should work :wink: . If there is a big enough userbase, I would be willing to see if we can polish the integration a bit and perhaps even bring it to core, however for twelve users that is not worth it.

3 Likes

Hi Mick,

Found this page via a fellow Home Assistant user (Experia Box v10 Device Tracker (KPN, Telfort) - #41 by maxdis), and indeed there is a large user base for this I believe. I have an Experiabox 12 (KPN) at home and I have just added your integration. It already shows a lot of devices, so I’m planning to do some more testing tonight or tomorrow.

Thanks for all your effort!

1 Like

Great to hear, @maxdis! Feel free to create an issue if something doesn’t function. There are some known bugs, however hopefully more people will contribute again!

I will see if I can add this to HACS as a default integration, and perhaps also add better tags for KPN Experiabox.

I g’et This error after upgrade to latest HA

Retrying setup: Unable to communicate with IGD at: http://192.168.0.1:49152/36364e6a/gatedesc0b.xml

Hi! I know this thread is old but I get an error trying to configure the component.
I installed the custom component ha-sagemcom-fast, my router is Sagemcom Fast3890v3 but when I try to log in it gives me different errors:

Thanks in advance

For unexpected error, you could create an issue on GitHub perhaps. However, I have to say that there are more open issues and that I don’t have time to maintain / work on this at the moment…

2 Likes

The status of my phone keeps changing from home to away for a couple of seconds, is there a solution to that problem?

Hi , I use hack version, but did not work