Code Monkey home page Code Monkey logo

ha-sagemcom-fast's Introduction

screenshot of a device detail page in Home Assistant GitHub release HA integration usage

Sagemcom F@st integration for Home Assistant

This integration adds support for Sagemcom F@st routers to Home Assistant. Currently only a basic device_tracker entity is supported, however this could be extended in the future with more sensors.

Sagemcom F@st routers are used by many providers worldwide, but many of them did rebrand the router. Examples are the b-box from Proximus, Home Hub from bell, Salt Box X6 (Switzerland) and the Smart Hub from BT.

Features

  • Device Tracker, to track connected devices to your router (WiFi and Ethernet)
  • Reboot button, to reboot your gateway from Home Assistant

Known limitations / issues

Since this integration is only used by a few users, not much time has been spent on the development lately. There are currently some known limitations and bugs. Contributions are welcome!

  • After reboot, not connected devices have status 'unavailable' #14

Installation

Manual

Copy the custom_components/sagemcom_fast to your custom_components folder. Reboot Home Assistant and install the Sagemcom F@st integration via the integrations config flow.

HACS

Add this repository as a custom repository to HACS as described here, search for the Sagemcom F@st integration and choose install. Reboot Home Assistant and install the Sagemcom F@st integration via the integrations config flow.

https://github.com/imicknl/ha-sagemcom-fast

Usage

This integration can only be configured via the Config Flow. Go to Configuration -> Integrations -> Add Integration and choose Sagemcom F@st. The prompt will ask you for your credentials. Please note that some routers require authentication, where others can login with guest username and an empty password.

The encryption method differs per device. Please refer to the table below to understand which option to select. If your device is not listed, please try both methods one by one.

Supported devices

Have a look at the table below for more information about supported devices. The Sagemcom F@st series is used by multiple cable companies, where some cable companies did rebrand the router. Examples are the b-box from Proximus, Home Hub from bell and the Smart Hub from BT.

Router Model Provider(s) Authentication Method Comments
Sagemcom F@st 3864 Optus sha512 username: guest, password: ""
Sagemcom F@st 3865b Proximus (b-box3) md5
Sagemcom F@st 3890V3 Delta / Zeelandnet sha512
Sagemcom F@st 3896 sha512 username: admin
Sagemcom F@st 4360Air KPN md5
Sagemcom F@st 4353 Belong Gateway md5 username: admin, password: ""
Sagemcom F@st 5250 Bell (Home Hub 2000) md5 username: guest, password: ""
Sagemcom F@st 5280 sha512
Sagemcom F@st 5359 KPN (Box 12) sha512 username: admin
Sagemcom F@st 5364 BT (Smart Hub) md5 username: guest, password: ""
SagemCom F@st 5366SD Eir F3000 md5
Sagemcom F@st 5370e Telia sha512
Sagemcom F@st 5380 TDC md5
Sagemcom F@st 5566 Bell (Home Hub 3000) md5 username: guest, password: ""
Sagemcom F@st 5688T Salt (FibreBox_X6) sha512 username: admin
Sagemcom F@st 5689 Bell (Home Hub 4000) md5 username: admin, password: ""
Sagemcom F@st 5655V2 MásMóvil md5
Sagemcom F@st 5657IL md5
Speedport Pro Telekom md5 username: admin

Contributions welcome. If you router model is supported by this package, but not in the list above, please create an issue or directly pull request.

Advanced

Enable debug logging

The logger integration lets you define the level of logging activities in Home Assistant. Turning on debug mode will show more information to help us understand your issues.

logger:
  default: critical
  logs:
    custom_components.sagemcom_fast: debug

Device not supported / working correctly

If you are not able to use this integration with your Sagemcom F@st device, please create an issue with as much information as possible. Turn on debug logging and share the logs in your issue description.

ha-sagemcom-fast's People

Contributors

actions-user avatar arunpoudel avatar bakonyiferenc avatar dependabot[bot] avatar imicknl avatar lp55 avatar m4d1ng3r avatar raolss avatar rhpijnacker avatar supaeasy avatar tamueller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-sagemcom-fast's Issues

Missing MAC address?

Versions

Key Value
Home Assistant version 2022.2.9
Integration version 0.25
Sagemcom F@st model
Sagemcom F@st firmware (optional) FAST3890V3_WIFIHUBC2_sw18.76.10.10o-17

Describe the bug

Integration not configured

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

Logger: homeassistant.config_entries
Source: helpers/device_registry.py:132
First occurred: 20:12:55 (1 occurrences)
Last logged: 20:12:55

Error setting up entry 192.168.0.1 for sagemcom_fast
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 327, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/sagemcom_fast/init.py", line 125, in async_setup_entry
device_registry.async_get_or_create(
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 336, in async_get_or_create
connections = _normalize_connections(connections)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 850, in _normalize_connections
return {
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 851, in
(key, format_mac(value)) if key == CONNECTION_NETWORK_MAC else (key, value)
File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 132, in format_mac
if len(to_test) == 17 and to_test.count(":") == 5:
TypeError: object of type 'NoneType' has no len()

Additional context

Add any other context about the problem here.

[bug]

[Fast 5655v2] Config Flow fails on keyError: 'id'

Versions

Key Value
Home Assistant version core-2021.11.1
Integration version latest available
Sagemcom F@st model 5655v2
Sagemcom F@st firmware (optional) HW ver 1.0; SW ver SG3G10000636; GUI ver 1.110.62;

Describe the bug

This error originated from a custom integration.

Logger: custom_components.sagemcom_fast
Source: custom_components/sagemcom_fast/init.py:60
Integration: Sagemcom F@st (documentation, issues)
First occurred: 21:06:31 (1 occurrences)
Last logged: 21:06:31

'id'
Traceback (most recent call last):
File "/config/custom_components/sagemcom_fast/init.py", line 60, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 273, in login
if data["id"] is not None and data["nonce"] is not None:
KeyError: 'id'

[bug]

Sagemcom Fast 5689-Bell

Sagecom Fast 5689 (Bell Home Hub 4000), supported with admin login and md5.
Only see the device at this point.

Unsupported model: F@ST F5359 / KPN Box 12

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

Key Value
Model name F@ST F5359
Hardware Version 1.0
Software Version SGEJ10000310

No Sagemcom in Integrations

I added the integration using HACS but can't find Sagemcom under Configuration -> Integrations -> Add Integration after the reboot.

Unable to find the integration

Versions

Key Value
Home Assistant version 2021.5.0
Integration version 0.2.2
Sagemcom F@st model XGSR1644 (fibre x6)
Sagemcom F@st firmware (optional) SGEk10001A05

Describe the bug

I've installed the repository via HACS but I cannot find the integration

To Reproduce

Steps to reproduce the behavior:

  1. Install the repository in HACS (the files are present in ./config/custom_components/sagemcom_fast )
  2. go in config - integratios - press the + button
  3. serch for the sagem integration but it is not present :-(

Expected behavior

I expect to find the sagem integration

Screenshots

2021-05-07 08_18_28-Configuration - Home Assistant e altre 6 pagine - Personale - Microsoft​ Edge

Additional context

Add any other context about the problem here.

[bug]

[Fast3890v3] Swedish Tele2 router - 'utf-8' codec can't decode byte

Trying this component gives me error in logs:

2021-09-20 13:52:58 ERROR (MainThread) [custom_components.sagemcom_fast] Error fetching sagemcom_hosts data: Error communicating with API: 'utf-8' codec can't decode byte 0x84 in position 81031: invalid start byte

Router: Fast3890v3
Router using software: FAST3890V3_WIFIHUBC2_sw18.76.10.10o-11

Reloading Issue Sagemcom F@st3896

Versions

Key Value
Home Assistant version 2022.11.5
Integration version LATEST
Sagemcom F@st model 3896
Sagemcom F@st firmware (optional)

Description of the bug

Hi,

I want to let you know that this integration is awesome!! It works on the Sagemcom F@st3896.

The only issue that I am having is that I need to manually reload the integration to get the updated device tracking information for devices such as mobile phones that leave my home. I've waited hours and I can see my device connected to my router. I'm not sure if I can do reload the integration through an automation or if you have the ability to do it in the integration. The refresh time is set to 10 seconds, but I don't get the updates in home assistant unless I manually reload.

To Reproduce

Steps to reproduce the behavior:

  1. Disconnect mobile device from Wi-Fi on the Sagemcom F@st3896.
  2. Reconnect the Wi-Fi on the Sagemcom F@st3896.
  3. Device tracking does not update.
  4. Manually reload the integration.
  5. Device tracking is now updated.

Expected behavior

Automatic update to the device tracking information.

[bug]

No entities at all

Versions

Key Value
Home Assistant version 2023.9.3
Integration version 0.2.8
Sagemcom F@st model Kpn Experiabox 12

Describe the bug

There are no entities and there are errors in the logs

To Reproduce

Steps to reproduce the behavior:

You just need to install the integration

Expected behavior

I expect it to make a whole list of entities from all the devices

Screenshots

No screenshots but there are logs which i altered just a tiny bit from extra privacy or smthing:

2023-10-01 13:21:41.610 ERROR (MainThread) [homeassistant.components.device_tracker] sagemcom_fast: Not adding entity with invalid device info: Invalid device info {'default_name': '', 'identifiers': {('sagemcom_fast', 'BLOCKED')}, 'via_device': ('sagemcom_fast', '1d13a620997a9ef1fc8788d1ad64cede')} for 'sagemcom_fast' config entry: device info needs to either describe a device, link to existing device or provide extra information.

This is one of a bunch of similar errors

[bug]

Error fetching sagemcom_hosts data: Error communicating with API: list index out of range

Versions

Key Value
Home Assistant version latest dev
Integration version 0.2.1
Sagemcom F@st model Sagemcom FAST3890
Sagemcom F@st firmware (optional) FAST3890V3_DELTA-SIP_sw05.76.9.7k-3

Describe the bug

It seems that the DataUpdateCoordinator only works after startup, and afterwards it will give an error regarding the list index out of range.

Expected behavior

Every 10 seconds pull the active devices and merge the lists, without throwing errors.

Additional context

2021-04-09 19:36:36 ERROR (MainThread) [custom_components.sagemcom_fast] Error fetching sagemcom_hosts data: Error communicating with API: list index out of range

[bug]

Sagemcom F@st 3865b don't login

Hello i try Sagemcom F@st 3865b | Proximus (b-box3) | md5,
and I have this message : Unexpected error

Debug info:
2022-01-04 11:19:26 ERROR (MainThread) [custom_components.sagemcom_fast.config_flow]

<title>404 Not Found</title>

404 Not Found


nginx Traceback (most recent call last): File "/config/custom_components/sagemcom_fast/config_flow.py", line 65, in async_step_user return await self.async_validate_input(user_input) File "/config/custom_components/sagemcom_fast/config_flow.py", line 50, in async_validate_input await client.login() File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 265, in login response = await self.__api_request_async([actions], True) File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 198, in __api_request_async raise UnknownException(result) sagemcom_api.exceptions.UnknownException: <title>404 Not Found</title>

404 Not Found


nginx

Thanks
Laurent

[Device Tracker] After reboot, not connected devices have status 'unavailable'

Versions

Key Value
Home Assistant version latest dev
Integration version 0.2.1
Sagemcom F@st model Sagemcom FAST3890
Sagemcom F@st firmware (optional) FAST3890V3_DELTA-SIP_sw05.76.9.7k-3

Describe the bug

After a reboot of Home Assistant, devices that are not connected but which have been connected in the past, will show as unavailable.

Screen Shot 2021-04-11 at 16 50 35

To Reproduce

Steps to reproduce the behavior:

  1. Connect device to network
  2. Disconnect device from network
  3. Reboot Home Assistant
  4. Device will show as unavailable

Expected behavior

Device will be home or not home.

Additional context

We could see if we pull all devices, instead of only active. But this will clutter the entity registry a lot.

                hosts = await self._client.get_hosts(only_active=True)

Otherwise, we could loop through the entities on boot and add them to the list / dictionary. This is what other integration do.

[bug]

Couldn't Log in

Hi

Thx for the effort to make this integration!
I'm new into home assistant and I have troubles to make it work.

I tried different things but I still get errors.

Is it possible to give an example of the credentials of the integration?
Foto 28-05-2021 om 20 26

Thx in advance!

Device has no mac address

Versions

Key Value
Home Assistant version 2021.8.8
Integration version
Sagemcom F@st model Bbox3
Sagemcom F@st firmware (optional)

Describe the bug

Deze fout is ontstaan door een aangepaste integratie.

Logger: homeassistant.components.device_tracker
Source: custom_components/nieuwe/device_tracker.py:35 
Integration: Apparaattracker 
First occurred: 7:22:38 (4 occurrences) 
Last logged: 7:26:29

Error while setting up sagemcom_fast platform for device_tracker
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/nieuwe/device_tracker.py", line 35, in async_setup_entry
    for idx, device in coordinator.data.items()
AttributeError: 'NoneType' object has no attribute 'items'

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.nieuwe
Source: helpers/update_coordinator.py:219 
Integration: nieuwe 
First occurred: 7:22:35 (4 occurrences) 
Last logged: 7:26:29

Error fetching sagemcom_hosts data: Error communicating with API: 'Device' object has no attribute 'mac_address'

To Reproduce

Steps to reproduce the behavior:

Restart the integration

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

state doesn't change from home to not_home

Environment:
Sagemcom F@st 3865bProximus (b-box3)
Release: 8c.514A
GUI Version
7.4.2.0

The state of my tracked device doesn;t change from 'home' to 'not_home'. if i turn off the wifi it keeps the home state then if i reload the integration the Mobile device entity it shows up as 'This entity is not currently available.'

I need to spend some time to investigate why i cannot get the logs and i will have a look into the code. Any other ideas how can debug your application? HA Core is running over docker in Synology For your reference here we have the my config file.

default_config:
frontend:
  themes: !include_dir_merge_named themes

tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
logger:
  default: critical
  logs:
    custom_components.sagemcom_fast: debug

Sagemcom F5688_NJJ supported

Integration is working

Router Model: Sagemcom F@ST 5688T (rebranded as FibreBox_X6)
Provider: Salt (CH)
Authentication Method: SAH512
Comments: username: admin

detected integration that uses deprecated 'async_get_registry'

Versions

Key Value
Home Assistant version 2022.10.5
Integration version V0.2.6
Sagemcom F@st model F5359 (KPN V12)
Sagemcom F@st firmware (optional)

Describe the bug

Home assistant logger gives notification since 2022.10:

Detected integration that uses deprecated async_get_registry to access device registry, use async_get instead. Please report issue to the custom integration author for sagemcom_fast using this method at custom_components/sagemcom_fast/init.py, line 127: device_registry = await hass.helpers.device_registry.async_get_registry()

To Reproduce

Steps to reproduce the behavior:

restart HA

Expected behavior

Give a clear and concise description of what you expected to happen.
See error log, use async_get instead of async_get_registry

[bug]

Investigate autodiscover via SSDP/DHCP

Working towards an official core integration, it would be great if we could discover Sagemcom F@st routers in a network.

In the past I came up with the following SSDP definition (not included in Config Flow), but I assume it could work with the new DHCP mode as well.

"ssdp": [
    {
      "deviceType": "urn:schemas-wifialliance-org:device:WFADevice:1",
      "manufacturer": "Sagemcom Broadband SAS"
    },
    {
      "deviceType": "urn:schemas-upnp.org:device:InternetGatewayDevice:1",
      "manufacturer": "Sagemcom Broadband SAS"
    }
  ],
  "dhcp": [
    {
      "macaddress": "D8A756*"
    }
  ]

Can't connect to Telekom Speedport Pro - no username?

Versions

Key Value
Home Assistant version 2022.2.9
Integration version 0.2.5
Sagemcom F@st model Telekom Speedport Pro
Sagemcom F@st firmware (optional)

Describe the bug

I cannot setup the integration with my Telekom Speedport Pro, even though it is listed as supported,

To Reproduce

Steps to reproduce the behavior:

I installed the integration using HACS, when setting up I give the following values:
hostname: 192.168.2.1 (this is the address where my speedports UI is reachable)
username: I leave that blank
password: well, the password
encryption: MD5
I tried checking the "use SSL certificate" box, but it didn't change anything.

When logging in into the speedport I don't provide a username, just a password. I also tried "guest". In the documentation it doesn't mention what username should be provided.

When I send submit, I get:

"Invalid authentication"

I've looked in the debug logs, searched for sagem and found the following snippets:
2022-02-28 11:12:51 DEBUG (MainThread) [async_upnp_client.traffic.upnp] Got response: 404 Content-Length: 15 Server: Sagemcom Rest Date: Mon, 28 Feb 2022 10:12:49 GMT b'404 Not Found\r\n' 2022-02-28 11:12:51 DEBUG (MainThread) [async_upnp_client.description_cache] Error fetching http://192.168.2.1:48080/gatedesc0fhidden.xml: Did not receive HTTP 200 but 404

2022-02-28 11:13:47 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [548125505232] Sending {"id": 70, "type": "result", "success": true, "result": {"resources": {"component.sagemcom_fast.config.abort.already_configured": "Device is already configured", "component.sagemcom_fast.config.error.access_restricted": "Access restricted", "component.sagemcom_fast.config.error.cannot_connect": "Failed to connect, please try again", "component.sagemcom_fast.config.error.invalid_auth": "Invalid authentication", "component.sagemcom_fast.config.error.unknown": "Unexpected error", "component.sagemcom_fast.config.error.login_timeout": "Request timed-out. This could be caused by using the wrong encryption method, or using a (non) SSL connection.", "component.sagemcom_fast.config.error.maximum_session_count": "Maximum session count reached.", "component.sagemcom_fast.config.step.user.data.host": "Host", "component.sagemcom_fast.config.step.user.data.password": "Password", "component.sagemcom_fast.config.step.user.data.username": "Username", "component.sagemcom_fast.config.step.user.data.encryption_method": "Encryption Method", "component.sagemcom_fast.config.step.user.data.ssl": "Uses an SSL certificate", "component.sagemcom_fast.config.step.user.data.verify_ssl": "Verify SSL certificate", "component.sagemcom_fast.config.step.user.description": "Enter your credentials for accessing the routers web interface. Depending on the router model, Sagemcom is using different encryption methods for authentication, which can be found in the [supported devices](https://github.com/iMicknl/ha-sagemcom-fast#supported-devices) list."}}}

[bug]

Cannot initiluze after upgrade

Versions

Key Value
Home Assistant version Home Assistant 2023.5.2Supervisor 2023.04.1Operating System 10.1Frontend-version: 20230503.2 - latest
Integration version latest 0.2.6
Sagemcom F@st model
Sagemcom F@st firmware (optional)
FAST3890V3_WIFIHUBC2

Describe the bug

Doesn't initialize

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

2023-05-06 09:58:50.009 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.0.1 for sagemcom_fast

File "/config/custom_components/sagemcom_fast/init.py", line 127, in async_setup_entry

Support for Fast 5866T

Hi there,

Thank you for your contribution.

I have the HACS add-on installed successfully but I'm unable to log in with various credentials and authentication types.

Is there any support for Fast 5866T?

Many thanks.

`2023-10-09 14:30:07.660 ERROR (MainThread) [custom_components.sagemcom_fast.config_flow]

<title>404 Not Found</title>

404 Not Found

Traceback (most recent call last): File "/config/custom_components/sagemcom_fast/config_flow.py", line 86, in async_step_user return await self.async_validate_input(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/sagemcom_fast/config_flow.py", line 69, in async_validate_input await client.login() File "/usr/local/lib/python3.11/site-packages/sagemcom_api/client.py", line 270, in login response = await self.__api_request_async([actions], True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/sagemcom_api/client.py", line 200, in __api_request_async raise UnknownException(result) sagemcom_api.exceptions.UnknownException: <title>404 Not Found</title>

404 Not Found

`

Login issue?

Versions

Key Value
Home Assistant version
Supervisor 2023.04.1
Operating System 10.1
Frontend-version: 20230503.3 - latest
Integration version
Sagemcom F@st model
Sagemcom F@st firmware (optional) FAST3890V3_WIFIHUBC2_sw18.76.15.17w-6

Logginformation (FEL)
Felet härrör från en anpassad integration.
Logger: custom_components.sagemcom_fast
Source: custom_components/sagemcom_fast/init.py:70
Integration: Sagemcom F@st (documentation, issues)
First occurred: 22:24:23 (2 occurrences)
Last logged: 22:50:02

{'code': 16777224, 'description': 'XMO_LOGIN_RETRY_ERR'}
Traceback (most recent call last):
File "/config/custom_components/sagemcom_fast/init.py", line 70, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.10/site-packages/sagemcom_api/client.py", line 270, in login
response = await self.__api_request_async([actions], True)
File "/usr/local/lib/python3.10/site-packages/sagemcom_api/client.py", line 240, in __api_request_async
raise UnknownException(action_error)
sagemcom_api.exceptions.UnknownException: {'code': 16777224, 'description': 'XMO_LOGIN_RETRY_ERR'}

Sagemcom F5359 working

Hi,

I've gotten this to work with the KPN Box 12 (Sagemcom F5359). I used SHA512 and the regular admin and password (not the guest account).

Cheers,

Cees

Sagemcom F@st 5655V2 login - Failed to connect, please try again

Hello,

I have a router Telekom - Sagemcom F@st 5655V2 AC. Theoretically the device is supported.
However when I try to login, I have got the following message "Failed to connect, please try again"
In the Host field I write the IP address, with this can be reach the router from browser - "192.168.1.1".
I use the username and password, that is mentioned under the router.
The Encryption Method is MD5 I also tried with SHA512 but same issue.

Regards,
Gabor

Unable to connect to KPN Sagemcom F5359

Hi!

I installed the component, however it does not seem to work with the KPN model Sagemcom F5359. I tried the following combinations;

  • admin + password in MD5 and sha512
  • guest + password in MD5 and sha512
  • guest + no password in MD5 and sha512
  • no credentials in MD5 and sha512
  • All of the above using ip adress and the url "mijnmodem.kpn"

Config entry 'UPnP/IGD' for upnp integration not ready yet. Retrying in 80 seconds

Not 100% sure this traceback is related;

2021-02-05 20:03:44 ERROR (MainThread) [homeassistant.components.system_health] Error fetching system info for cloud - can_reach_cloud
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/system_health/__init__.py", line 212, in async_check_can_reach_url
await session.get(url, timeout=5)
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 544, in _request
await resp.start(conn)
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 905, in start
self._continue = None
File "/usr/local/lib/python3.8/site-packages/aiohttp/helpers.py", line 656, in __exit__
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

Can't find integration in HACS

I'm not able to install this integration via HACS, as I can't find it in the list there. Has this been "removed" from the HACS filter, or am I doing something wrong?

image

Dublicate entities created

Versions

Key Value
Home Assistant version 2021.12.5
Integration version "0.2.1"
Sagemcom F@st model 3890V3
Sagemcom F@st firmware (optional) FAST3890V3_MAGYAR_sw18.76.10.13c-1
GUI ver 5.14.0

Describe the bug

I am not exactly sure what made it happen. But I noticed the integration gets stuck, setting all device_tracker entries 'Unavailable' status. in such a case I attempted to run 'Reload' option. this all happened a few times. But now I found some entries duplicated with name ended '_2' .. when the original entity is 'Unavailable' and the second one seems gets actual status 'home'.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

[Proximus B-box] Config Flow fails on keyError: 'id'

Versions

Key Value
Home Assistant version latest
Integration version latest 1.2.5
Sagemcom F@st model bbox proximus
Sagemcom F@st firmware (optional)

Describe the bug

Integration crashes on startup, see logfile below

Screenshots

'id'
Traceback (most recent call last):
File "/config/custom_components/sagemcom_fast/config_flow.py", line 86, in async_step_user
return await self.async_validate_input(user_input)
File "/config/custom_components/sagemcom_fast/config_flow.py", line 69, in async_validate_input
await client.login()
File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 278, in login
if data["id"] is not None and data["nonce"] is not None:
KeyError: 'id'

Additional context

Add any other context about the problem here.

[bug]

consider_home setting or equivalent?

Hello,

Great work and thanks alot for sharing this integration. I got my Sagemcom F5359 (KPN Netherlands) initial device tracking running in no time.

Now the finetuning part. I would like to track how long my galaxy phone is at home each day. As you can see below the device is flicking state although it is at home.
Image 160

while investigating whether I could get that solved I stumbled upon the setting "consider_home" (see https://www.home-assistant.io/integrations/device_tracker/) that documents the exact behavior I would like to have.

I just can't figure out whether the device tracker created by this integration (device_tracker.galaxy_s7) would support this setting. If so, where to set it as I cant find a file that holds the configuration of the created device trackers. If not, would there be an equivalent way of implementing the same behavior?

No entities found

Versions

Key Value
Home Assistant version 2023.9.1
Integration version latest
Sagemcom F@st model FAST3890V3_WIFIHUBC2_sw18.76.15.17w-6
Sagemcom F@st firmware (optional) FAST3890V3_WIFIHUBC2_sw18.76.15.17w-6

Describe the bug

No entities found, the device trackers are still there but unavailable

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

Device Tracking Inconsistent

Versions

Key Value
Home Assistant version 2021.4.6
Integration version 0.2.2
Sagemcom F@st model 5364
Sagemcom F@st firmware (optional) SG4K10002816t

Describe the bug

Presence keeps jumping from home to away and back again sporadically every few minutes

To Reproduce

Steps to reproduce the behavior:

  1. Go to device.tracker.my_iphone
  2. Status is flipping from Home to Away constantly even when I am at home and not moving away from my house

Expected behavior

Device should only switch to home when it is no longer connected to WiFi

Screenshot

Screenshot 2021-04-21 at 14 03 55

Additional context

Additional consideration is that I am using a mesh network for WiFi separate to my Sagemcom router, though the router would still have my mac address for the device present on the system and it does show when I log into the router GUI

[bug]

Sagemcom 5359

Hello.

As a user of a Sagemcom Fast5359 (which is sold/used in the Netherlands by KPN as 'Box 12') i tried your HACS component, and was able to get the config flow working. I used the admin account for it, so with a password, and sha512 as authentication method .

I for now only see 1 device, no other info.

Sagemcom F@st 5657

Hey!

Thanks for creating this integration! Really helpful.

I have the Sagemcom F@st 5657 and it's working as well with your plugin so you can add this to the list!

Best regards,

Compatibility for Fast 5866T

I would love it if you could add compatibility for a Fast 5866T, provider is TPG in Australia. I've tried all options, here is the error I receive.

This error originated from a custom integration.

Logger: custom_components.sagemcom_fast.config_flow
Source: custom_components/sagemcom_fast/config_flow.py:69
Integration: Sagemcom F@st (documentation, issues)
First occurred: 11:59:33 (9 occurrences)
Last logged: 13:42:29

<title>404 Not Found</title>

404 Not Found

Traceback (most recent call last):
File "/config/custom_components/sagemcom_fast/config_flow.py", line 86, in async_step_user
return await self.async_validate_input(user_input)
File "/config/custom_components/sagemcom_fast/config_flow.py", line 69, in async_validate_input
await client.login()
File "/usr/local/lib/python3.10/site-packages/sagemcom_api/client.py", line 270, in login
response = await self.__api_request_async([actions], True)
File "/usr/local/lib/python3.10/site-packages/sagemcom_api/client.py", line 200, in __api_request_async
raise UnknownException(result)
sagemcom_api.exceptions.UnknownException:

<title>404 Not Found</title>

404 Not Found

Sagecom F@st 3890V3 - {'code': 16777224, 'description': 'XMO_LOGIN_RETRY_ERR'}

Versions

Key Value
Home Assistant version 2021.12.5
Integration version "0.2.1"
Sagemcom F@st model 3890V3
Sagemcom F@st firmware (optional) FAST3890V3_MAGYAR_sw18.76.10.13c-1
GUI ver 5.14.0

Describe the bug

Performed Manual installation.
Attempted to add an integration with authentication method 'md5' as described in Table of supported devices but it failed to login. Then changed to 'sha512' and it succeeded . but on the integration card I see an error ‘Failed to set up. See log’. This is the log entry (only one):

`This error originated from a custom integration.

Logger: custom_components.sagemcom_fast
Source: custom_components/sagemcom_fast/init.py:60
Integration: Sagemcom F@st (documentation, issues)
First occurred: 9:13:08 PM (1 occurrences)
Last logged: 9:13:08 PM

{'code': 16777224, 'description': 'XMO_LOGIN_RETRY_ERR'}
Traceback (most recent call last):
File "/config/custom_components/sagemcom_fast/init.py", line 60, in async_setup_entry
await client.login()
File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 265, in login
response = await self.__api_request_async([actions], True)
File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 235, in __api_request_async
raise UnknownException(action_error)
sagemcom_api.exceptions.UnknownException: {'code': 16777224, 'description': 'XMO_LOGIN_RETRY_ERR'}
`
I can play with coding a bit but had an issue while installing your package from pypi on Ububntu. 20

`pip install sagecom_api

ERROR: Could not find a version that satisfies the requirement sagecom_api (from versions: none)
ERROR: No matching distribution found for sagecom_api
`
have python 3.8.10

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

[bug]

Sagemcom Fast5688sAttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setups'

I believe it used to work. Been back using Home Assistant and now I see this error.

Logger: homeassistant.config_entries
Source: custom_components/sagemcom_fast/__init__.py:140
Integration: Sagemcom F@st ([documentation](https://github.com/imicknl/ha-sagemcom-fast), [issues](https://github.com/imicknl/ha-sagemcom-fast/issues))
First occurred: September 15, 2023 at 1:00:09 AM (3 occurrences)
Last logged: 4:04:47 PM
Error setting up entry 192.168.1.1 for sagemcom_fast

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/sagemcom_fast/__init__.py", line 140, in async_setup_entry
    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setups'

[F@st5370e] XMO_UNKNOWN_PATH_ERR on Device/DeviceInfo

Versions

Key Value
Home Assistant version core-2021.11.1 / supervisor-2021.10.8
Integration version v.0.2.2
Sagemcom F@st model F@st5370e
Sagemcom F@st firmware (optional)

Describe the bug

Installed using HACCS, added Sagemcom F@st at Integrations. Added my router ip and correct login information with authentication sha512.

"Failed to set up"
"Error setting up entry 192.168.1.1 for sagemcom_fast"

Debug log

Logger: homeassistant.config_entries
Source: custom_components/sagemcom_fast/__init__.py:109
Integration: Sagemcom F@st (documentation)
First occurred: 19:31:45 (1 occurrences)
Last logged: 19:31:45

Error setting up entry 192.168.1.1 for sagemcom_fast
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/sagemcom_fast/__init__.py", line 109, in async_setup_entry
    gateway = await client.get_device_info()
  File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 326, in get_device_info
    data = await self.get_value_by_xpath("Device/DeviceInfo")
  File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 296, in get_value_by_xpath
    response = await self.__api_request_async([actions], False)
  File "/usr/local/lib/python3.9/site-packages/sagemcom_api/client.py", line 233, in __api_request_async
    raise UnknownPathException(action_error)
sagemcom_api.exceptions.UnknownPathException: {'code': 16777242, 'description': 'XMO_UNKNOWN_PATH_ERR'}

Sagemcom 5668w TMobile

Hi. I've managed to hunt down a bunch of api endpoints for this router. But I'm still missing important things. Such as how to put it in bridge mode. So I'm most of the way ther I believe.

It has the 192.168.12.1 gateway and then if I send curl or other REST api requests at like http://192.168.12.1/TMI/v1/network/configuration/get-ap -- I get back a pretty big json message thats easy to parse. If you want to add this machine to your collection, let me know. Anyway the entire struggle has been trying to figure out the correct endpoints to try. Frustrating that these large corporations have chosen to release products that are essentially black boxes of mystery to most consumers. Very frustrating. Have a good day.

Remove encryption method in favor of automatic discovery

Is your feature request related to a problem? Please describe.
Choosing the encryption method is unclear for users and requires looking up their device. Eventually when the underlying API supports this, we should implement it in this integration.

Tracking: iMicknl/python-sagemcom-api#35

Describe the solution you'd like
'Automatic' option as default, allowing users to override this by manually choosing an encryption method.

Describe alternatives you've considered
Removing the field to avoid confusion. This could increase setup / login times, since it will only give an wrong encryption method error on a timeout...

SAGEMCOM 5566 VPI / VCI edit

Hi
I am looking to change the vpi/vci of the 5566 (bell HH3000) from 0/35 to 0/38 to be able to make it work with a different ADSL provider

Is this something that can be done ?

Bbox F@st5688b seems not working

Hi.

I'm trying to connect to my bBox SagemCom F@st5688B. I'm using HA OS ans HACS module integration.

When I'm trying to connect with the user = admin and (my_password) with MD5 or SHA512 the connection is refused.

I don't known if it shoud be working ?

Thanks for your response

Add sensor entities

As requested on the Home Assistant Community:

I think would be nice to have a sensor for an network interface sent and received bytes. Maybe publish everything from a xpath expression. eg: “Device/PPP/Interfaces/Interface/Stats”

Sensor

  • Uptime Sensor (Device/DeviceInfo/UpTime)
  • Data usage

Binary Sensor:

  • UP/DOWN - LAN / WAN status (Device/IP/Interfaces/Interface[Alias='IP_DATA']/Status)

It could happen that those sensors are not available for every device, thus at start-up it should first check if it is available.

Would require iMicknl/python-sagemcom-api#12, so that we can combine multiple sensor updates in 1 call.

Examples: https://github.com/wuseman/SAGEMCOM-FAST-5370e-TELIA/blob/master/configuration-files/xpaths-wuseman

Android MotoG9 discovery issue

Environment:
Sagemcom F@st 3865bProximus (b-box3)
Release: 8c.514A
GUI Version
7.4.2.0

The Sagemcom Client seems to have issues while discovering my Androids devices.
After further investigation the issue seems triggered by the 'hostname' and device type values seen into the router. By default in the router you don't have a friendly name so not sure if your application is expecting a value because in the HA entity you are mapping the same friendly name value.

Workaround is: change the device type from 'Generic' to 'Mobile phone' and assign a friendly name then reload the application

Action Taken:

  1. Added the Sagemcom client integration

  2. Reloaded home Assistant

  3. the client doesn't discover the Motorola G9 Android
    Sagemcom F@st
    192.168.1.1
    12 devices and 12 entities

  4. Tried to reload either the application or HA but no luck

  5. Changed the Motorola device type and the friendly name in the router

  6. Reloaded the client and issue is fixed

Apologies but i cannot share the logs somehow HA didn't print any logs even though i added the required lines in the configuration file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.