Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nicolaihc opened this issue Dec 13, 2022 · 3 comments
Closed

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

nicolaihc opened this issue Dec 13, 2022 · 3 comments

Comments

@nicolaihc
Copy link

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
Copy link
Author

nicolaihc commented Dec 16, 2022

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/node_modules/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
Copy link
Author

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

@telcopro
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants