Hi,
I am new to HA & trying to get everything setup, I can get the switchbot integration working & it can see the bot but when I try to toggle the switch I get the following flag up at the bottom of the scree …
I have HA OS setup using a virtual box VM running on a Dell 3040, I’ve added a plugable bluetooth usb dongle I had lying around as I’d read somewhere because it’s a VM it can’t use the onboard bluetooth.
Any help would be appreciated.
The log data is below.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/switchbot/switch.py:96
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 13:31:12 (1 occurrences)
Last logged: 13:31:12
[140589804236960] non-hexadecimal number found in fromhex() arg at position 13
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/switchbot/switch.py", line 96, in async_turn_off
self._last_run_success = bool(await self._device.turn_off())
File "/usr/local/lib/python3.10/site-packages/switchbot/__init__.py", line 391, in turn_off
result = await self._sendcommand(OFF_KEY, self._retry_count)
File "/usr/local/lib/python3.10/site-packages/switchbot/__init__.py", line 273, in _sendcommand
command = bytearray.fromhex(self._commandkey(key))
ValueError: non-hexadecimal number found in fromhex() arg at position 13