icanos / hassio-plejd

Hass.io add-on for Plejd home automation devices
Apache License 2.0
126 stars 37 forks source link

[plejd-mqtt] Initializing MQTT connection for Plejd addon #262

Closed nicolaihc closed 1 year ago

nicolaihc commented 1 year ago

Hello,

And thansk for making this Add-on :)

This is my first time running this addon. And i get a error so i cannot see my Plejd-units.

Is it the MQTT config that is not right? I have tryed to change mqtt-broker without any luck.

2022-12-13 13:07:07 INF [plejd-mqtt] Initializing MQTT connection for Plejd addon Catastrophic error. Resetting entire addon in 1 minute Error: Missing protocol at Object.connect (/plejd/node_modules/mqtt/lib/connect/index.js:71:13) at MqttClient.init (/plejd/MqttClient.js:151:24) at PlejdAddon.init (/plejd/PlejdAddon.js:124:21) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async main (/plejd/main.js:18:5)

nicolaihc commented 1 year ago

At last i got the MQTT working. But now i got a new problem. I think i maybe need to get the Bluetooth closer to my Plejd units?

2022-12-16 13:44:38 INF [plejd-ble] BLE init done, waiting for devices. 2022-12-16 13:44:38 INF [plejd-main] Main init done 2022-12-16 13:44:38 INF [plejd-main] main() finished 2022-12-16 13:44:40 INF [plejd-ble] Device discovery done, found 1 Plejd devices 2022-12-16 13:44:40 INF [plejd-ble] Connecting to /org/bluez/hci0/dev_EF_D5_C5_F3_7B_E4 2022-12-16 13:44:44 WRN [plejd-ble] Unable to connect. le-connection-abort-by-local DBusError: le-connection-abort-by-local at _methodReturnHandlers. (/plejd/node_modules/dbus-next/lib/bus.js:343:27) at handleMessage (/plejd/node_modules/dbus-next/lib/bus.js:101:11) at EventEmitter. (/plejd/node_modules/dbus-next/lib/bus.js:151:9) at EventEmitter.emit (events.js:314:20) at /plejd/node_modules/dbus-next/lib/connection.js:116:14 at Socket. (/plejd/nodemodules/dbus-next/lib/message.js:63:9) at Socket.emit (events.js:314:20) at emitReadable (_stream_readable.js:557:12) at processTicksAndRejections (internal/process/task_queues.js:83:21)

nicolaihc commented 1 year ago

Got the bluetooth closer to my Plejd units - Thanks for a nice Add-on! :)

telcopro commented 1 year ago

Hello,

And thansk for making this Add-on :)

This is my first time running this addon. And i get a error so i cannot see my Plejd-units.

Is it the MQTT config that is not right? I have tryed to change mqtt-broker without any luck.

2022-12-13 13:07:07 INF [plejd-mqtt] Initializing MQTT connection for Plejd addon Catastrophic error. Resetting entire addon in 1 minute Error: Missing protocol at Object.connect (/plejd/node_modules/mqtt/lib/connect/index.js:71:13) at MqttClient.init (/plejd/MqttClient.js:151:24) at PlejdAddon.init (/plejd/PlejdAddon.js:124:21) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async main (/plejd/main.js:18:5)

Hello,

And thansk for making this Add-on :)

This is my first time running this addon. And i get a error so i cannot see my Plejd-units.

Is it the MQTT config that is not right? I have tryed to change mqtt-broker without any luck.

2022-12-13 13:07:07 INF [plejd-mqtt] Initializing MQTT connection for Plejd addon Catastrophic error. Resetting entire addon in 1 minute Error: Missing protocol at Object.connect (/plejd/node_modules/mqtt/lib/connect/index.js:71:13) at MqttClient.init (/plejd/MqttClient.js:151:24) at PlejdAddon.init (/plejd/PlejdAddon.js:124:21) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async main (/plejd/main.js:18:5)

@nicolaihc Could you describe how you solved the protocol problem? I'm having the same and no idea how to change my MQTT URI.