Open prugala opened 1 year ago
I've tried with configuration:
{
"allowed_devices": [
{
"name": "Office blind",
"address": "02:13:0b:da:19:a4",
"pass_code": "8888",
"has_tilt": false,
"tilt_motor": {
"orientation": "vertical"
}
}
],
"hap_interaction_timeout": 90,
"poll_interval": 300,
"platform": "am43-blinds-bluez"
}
And HB crashes with error:
DBusError: Disconnected early
at _methodReturnHandlers.<computed> (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/bus.js:343:27)
at handleMessage (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/bus.js:101:11)
at EventEmitter.<anonymous> (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/bus.js:151:9)
at EventEmitter.emit (node:events:513:28)
at /var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/connection.js:132:14
at USocket.<anonymous> (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/message.js:65:9)
at USocket.emit (node:events:513:28)
at emitReadable_ (node:internal/streams/readable:590:12)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
Update, I used Ubuntu server and bluetooth works better. Plugin finding blinds but I have error:
DBusError: Write not permitted
at _methodReturnHandlers.<computed> (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/bus.js:343:27)
at handleMessage (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/bus.js:101:11)
at EventEmitter.<anonymous> (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/bus.js:151:9)
at EventEmitter.emit (node:events:513:28)
at /var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/connection.js:132:14
at USocket.<anonymous> (/var/lib/homebridge/node_modules/homebridge-am43-blinds-bluez/node_modules/dbus-next/lib/message.js:65:9)
at USocket.emit (node:events:513:28)
at emitReadable_ (node:internal/streams/readable:590:12)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
sudo
btmon` shows:
> HCI Event: Disconnect Complete (0x05) plen 4 #283 [hci0] 35.661681
Status: Success (0x00)
Handle: 17 Address: 02:77:05:AE:9F:2A (OUI 02-77-05)
Reason: Connection Terminated By Local Host (0x16)
Hello
I have a problem with plugin. Before I've used AM43 blinds with https://github.com/renssies/homebridge-am43-blinds on Raspberry Pi. Now I'm moving HB to new device with Intel CPU and external USB BT adapter.
Plugin can not find my blinds, so I tried to add config manually:
When HB starts plugin causes an error:
When I'm scanning bt devices with
bluetoothctl
I see my blind:Blind
,bedroom left
,bedroom right
:Any ideas?
Btw. I see and can control blinds via app on my iPhone without problem.