kservices / gBridge

gBridge.io allows you to control (almost) anything with Google Assistant, by translating voice commands to MQTT messages.
https://about.gbridge.io
MIT License
173 stars 44 forks source link

[doku] can you provide an example for Node-Red #13

Closed Hypnos3 closed 5 years ago

Hypnos3 commented 5 years ago

I was not able to get a mqtt connection of gbridge with node-red.

To rule out whether this is a local problem, it would be nice if someone could point out an example of a working node-red configuration that you might also be able to include in the documentation.

My (not working) configuration is: TLS: image

MQTT 1: image

MQTT 2: image

Many Thanks

peterkappelt commented 5 years ago

I don't use NodeRed regularly, so I would write examples blindly.

Try:

This configuration worked for some users who requested support and for me in a test environment.

Have a good one!

peterkappelt commented 5 years ago

Have you got it working with these recommendations?

Hypnos3 commented 5 years ago

No, same Problem.

Hypnos3 commented 5 years ago

I try my self hosted docker instance.

peterkappelt commented 5 years ago

I wouldn't like to close this issue yet. I don't really know wheter this problem just exists for you or for all NodeRed users.

It did work for a couple of NodeRed users around two months ago. It is possible that an update of NodeRed somehow broke the compatibility with gBridge's MQTT servers

Can you give additional information? Are there any log files? What's the exact problem (Is your NodeRed instance unable to make a connection to gBridge? Do you receive no messages? ...)

Best regards, Peter Kappelt

Hypnos3 commented 5 years ago

the only error is:

29 Nov 22:57:35 - [info] [mqtt-broker:xgbridgePlain] Connection failed to broker: mqtt://mqtt.gbridge.kappelt.net
29 Nov 22:57:35 - [info] [mqtt-broker:xGBridge] Connection failed to broker: mqtts://mqtt.gbridge.kappelt.net
marquel commented 5 years ago

Hi, For me it works without TLS configuration. Just enable secure connection, but don't add anything in the configuration.

unicornrobot commented 5 years ago

I had similar connection problems, but solved it by changing the MQTT password as mine had a $ character which was causing authentication error. Mine works with TLS enabled but not configured. gBridge is great, thanks!

Hypnos3 commented 5 years ago

Thank you!! This was the problem. I Have the # sign in the password. I have changed this and now it is working.

peterkappelt commented 5 years ago

Ahh, that was too easy...

I've wrote a guide for Node-RED integration: https://doc.gbridge.io/integration/tasmota.html

Hypnos3 commented 5 years ago

Vielen Dank!