dudanov / hassio-ftms

Home Assistant custom component for Bluetooth Fitness Equipment (FTMS).
Apache License 2.0
9 stars 0 forks source link

Can't add bike #16

Open TTLucian opened 4 days ago

TTLucian commented 4 days ago

Hi. I have a FTMS FitTronic 609B bike which works with FitShow, KinoMap and Zwift. When trying to add the integration, it sees the bike but it gets stuck with "Closing connection and saving the data..." message. I am using ESPHome BLE proxy with esp framework installed. Am I doing something wrong? Any help would be appreciated! 😅 Also error in HA logs:



Logger: homeassistant
Source: custom_components/ftms/config_flow.py:251
integration: ftms (documentation, issues)
First occurred: 12:30:06 (1 occurrences)
Last logged: 12:30:06

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 550, in call_configure
    await self._async_configure(flow.flow_id)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 414, in _async_configure
    result = await self._async_handle_step(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 517, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/ftms/config_flow.py", line 251, in async_step_ble_request
    _LOGGER.debug(f"Supported ranges: {self._ftms.supported_ranges}")
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyftms/client/client.py", line 223, in supported_ranges
    return self._settings_ranges
           ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'IndoorBike' object has no attribute '_settings_ranges'