Closed viy closed 3 years ago
Try to add environment variable PRANA_LOGGING=true
this should enable extensive logging (logs will be written into stdout).
I found this
2021-03-29 02:04:59,751 sizzlews.jsonrpc.manager ERROR: API Exception: {'type': 'RemoteError', 'args': ('org.bluez.Error.Failed',), 'message': 'org.bluez.Error.Failed: Operation failed with ATT error: 0x0e'}
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/sizzlews/jsonrpc/manager.py", line 142, in _get_responses
result = await result
File "/home/pi/.local/lib/python3.7/site-packages/prana_rc/contrib/api/handler.py", line 89, in get_state
state = await prana_device.read_state()
File "/home/pi/.local/lib/python3.7/site-packages/prana_rc/service.py", line 322, in read_state
state_bin = await self._send_command(self.Cmd.READ_STATE, expect_reply=True)
File "/home/pi/.local/lib/python3.7/site-packages/prana_rc/service.py", line 209, in _send_command
await self.__client.write_gatt_char(self.CONTROL_RW_CHARACTERISTIC_UUID, command, response=expect_reply)
File "/home/pi/.local/lib/python3.7/site-packages/bleak/backends/bluezdbus/client.py", line 622, in write_gatt_char
).asFuture(asyncio.get_event_loop())
txdbus.error.RemoteError: org.bluez.Error.Failed: Operation failed with ATT error: 0x0e
looks like it was an unstable connection issue (( so no worries
Hay, I have strange issue with prana-rc while getting state
But Btmot on the server actually returns
How can I get debug information from prana-rc server?