Skip to content

Ninebot Max does not update entity #5

@JoeyGE0

Description

@JoeyGE0

integration works and provides all info needed but will only pull data when integration is first added. even after power cycle of scooter and shortly after the scooter Bluetooth is connected, it doesn't seem to update!

`This error originated from a custom integration.

Logger: custom_components.ninebot_scooter
Source: components/bluetooth/active_update_processor.py:122
integration: Ninebot Scooter
First occurred: 9:14:17 PM (2 occurrences)
Last logged: 9:19:11 PM

F8:20:4F:11:A3:02: Failure while polling
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/active_update_processor.py", line 122, in _async_poll
update = await self._async_poll_data(self._last_service_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/bluetooth/active_update_processor.py", line 115, in _async_poll_data
return await self._poll_method(last_service_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ninebot_scooter/init.py", line 52, in _async_poll
return await data.async_poll(connectable_device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ninebot_ble/sensor.py", line 35, in async_poll
await self.client.connect(device)
File "/usr/local/lib/python3.12/site-packages/ninebot_ble/transport.py", line 119, in connect
resp = await self.request(Packet(DeviceId.PC, DeviceId.ES_BLE, Command.INIT, 0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ninebot_ble/transport.py", line 213, in request
raise TimeoutError(f"Did not get a response on {request}")
TimeoutError: Did not get a response on Packet[PC -> ES_BLE, cmd=INIT, idx=00]
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions