Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


MQTT Broker implementation


JCM

Recommended Posts

1 minute ago, 10der said:

as I can understand you HC2 and node-red not in the local network.... ohhh

I have a separate VLAN for IoT devices. As you probably know these are the most vulnerable devices, even in a LAN network.

 

Because the communications you are using are unencrypted, password are easy to intercept. That's why I made a comment about the Global Variable writing, using a administrator account.

 

The only way to use encrypted communications available by the Fibaro HC2, is to use scenes. They have the capability to set up encrypted  communications.

 

Just my two cents, though....;D

 

 

Link to comment
Share on other sites

PS: basic auth - hash and not provide login / password.

PS2: grab events on HC2 and pass to node-red it’s good idea... maybe... but I am think what initiator should be on node-red side plus node red must be as receiver.... and finally: Fibaro develop own API for end users that the end users afraid use it, isn’t it?! :)

Edited by 10der
  • Thanks 1
Link to comment
Share on other sites

good news

 

Please login or register to see this image.

 

welcome!

 

and thanks for the support!

  • Like 3
Link to comment
Share on other sites

@10der This looks like an amazing solution, but I'm new to Node-RED and mqtt and it would be great if someone could make a little guid. 

I already setup node-red and can controll my philips hue lights and installed mqtt mosquito and tested it with my pc, but somehow the connection to my hc2 does not work.

I get Error: getaddrinfo ENOTFOUND "username" "username":80

Link to comment
Share on other sites

@PreHack 

 

check IP


Please login or register to see this image.

/monthly_2018_07/image.png.5ef3dd6e072c7a2819faa0aab407548b.png" alt="image.png.5ef3dd6e072c7a2819faa0aab407548b.png" />

Link to comment
Share on other sites

IP, Username and PW are correct, I copyd the topic you have but it does not work for me.

Please login or register to see this attachment.

Link to comment
Share on other sites

Please login or register to see this code.

can you check from node-red PC?

Edited by 10der
Link to comment
Share on other sites

this gets the following output

 

Quote

Please login or register to see this code.

 

 

Thanks for your help I found the problem there seems to be some problems with special characters in the password.

Edited by PreHack
Link to comment
Share on other sites

Please login or register to see this image.

0Ba1ezhCOV.png

please,

1) click on IP field

2) tab

3) filed should change color

4) [SAVE]

5) publish

Edited by 10der
Link to comment
Share on other sites

I changed my password one the HC2 and without any special characters it seems to work. There was some json output but I cleared it and now I only get.

 

hc2.error.invalid-json

Link to comment
Share on other sites

is any comment under node?

Please login or register to see this image.

if no - not valid credentials for example

Link to comment
Share on other sites

Guest kallecux

Hi 10der,

what means the topic "home/status"?

Greetings

 

PS I get all "values" from all devices?!

Edited by kallecux
Link to comment
Share on other sites

3 minutes ago, kallecux said:

Hi 10der,

what means the topic "home/status"?

Greetings

 

 

no. topic used for OUT not for in

Just now, 10der said:

 

no. topic used for OUT not for in

 

node can't get start json like you already show

Please login or register to see this code.

Please login or register to see this image.

 

 

you still have issue with 

- IP address field

- login / password filed

Edited by 10der
Link to comment
Share on other sites

now I get spammed with output :) I don't know what has changed but it seems to work :) know I need to figure out Node-Red and the future will be good :) what would you say? how low can I have my polling intervall bevor i get any problems?

 

Please login or register to see this spoiler.

 

Link to comment
Share on other sites

reproduced:

Please login or register to see this image.

Link to comment
Share on other sites

@10der I'm not shure why but it seems to work maybe it took a while till hc2 changed to the new password or something but im pleased whit the output (post above)  I get, the rest I hope I can learn from any Node-Red example :) 

Edited by PreHack
Link to comment
Share on other sites

Quote

 how low can I have my polling intervall bevor i get any problems?

10 sec = ooook!

but FIBARO poll every 1 sec :

Please login or register to see this image.

but, Quod licet Iovi, non licet bovi!

Edited by 10der
Link to comment
Share on other sites

ok 10 sec is fine :) but it means that I need to push some events becouse scene would be to slow if i only get pooling every 10 sec. But first I will need to learn some node-red :)

Edited by PreHack
Link to comment
Share on other sites

2 minutes ago, PreHack said:

ok 10 sec is fine :) but it means that I need to push some events becouse scene would be to slow if i only get pooling every 10 sec. But first I will need to learn some node-red

 

yes, motion lights flow need 1sec poll circle... Just so long as FIBARO is not dead after DDOS pooling :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...