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

2 minutes ago, petrho said:

Will it be possible to configure the output topic for the device so instead of fibaro_out you can configure it to example hc2_out or something else?

 

Hmnm!

 

HC2 dispatcher listen for example fibaro_out/# topic

so, devices should always send commands to fibaro_out topic

so.. full example

 

Please login or register to see this code.

 

 

 

 

o!!!

more simple example!!!

 

Please login or register to see this code.

 

Link to comment
Share on other sites

When I run the example above its works perfectly when you use the button to switch on/off a wall plug (also I can see that the native fibaro app follow the changes. But when I use the native fibaro app and switch on/off the wallplug goes back to the initial state in a couple of seconds

Please login or register to see this attachment.

Link to comment
Share on other sites

@petrho thank you so much. bug. UI controls not understand values in "string" and cast non-objects types to false. so. thank you. fixed! waiting for update.

UPD: + [email protected]

 

PS: now you may subscribe on Global Values changes via  

home/globalVariables

topic

@JCM I am sorry. I am hijacked your topic!

 

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

@petrho but Sir, you are right! for easy using when user checking the box "I want to control this device blablba"  I should propose to provide an input line for command topic.

otherwise you sholud set topic in each UI board controls. facepalm!

 

thank you again! you best tester and idea man! bow!

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

Probably a very silly question...

When I install latest version it provides 3 nodes in palette but the hc2-server-config is missing.

 

Please login or register to see this image.

/monthly_2018_09/image.png.8ed045bdde4d8a3e6aad394d203fa683.png" />

 

It is greyed out in the palette manager . I think this might be a hidden or legacy component ?

 

image.png.13075dcf28a447acc97ad602ce16f491.png

 

However I can not get any configuration option in any of the other 3 nodes to display like this

image.png.6e59844612b6b25811ea71a18e7174f1.png

 

mine displays differently..

 

image.png.eabf4d641eb4d1cbf510cbb9282ab013.png

 

What am I missing ?  I can set the topic and room mode but only by editing one of the code snippets you post and then copy pasting that into a new flow.

I can't see how to add or edit these through any of the supplied nodes ?

 

K

Please login or register to see this attachment.

Edited by xAPPO
Link to comment
Share on other sites

@xAPPO

sudo /etc/init.d/node-red restart
 

browser Ctrl+F5

and yes config should be gray cuz is not "active" not it 

Please login or register to see this image.

Link to comment
Share on other sites

I have restarted nodeRED several times .. even restarted the whole machine that it is running on and have tried the full browser refresh - even cleared cookies and tried another two browsers.  

I'm wondering if it is something to do with NodeRED running in a docker container. 

Link to comment
Share on other sites

1 hour ago, 10der said:

@petrho but Sir, you are right! for easy using when user checking the box "I want to control this device blablba"  I should propose to provide an input line for command topic.

otherwise you sholud set topic in each UI board controls. facepalm!

 

thank you again! you best tester and idea man! bow!

0.0.69 seems to work fine! Thanks again!

Link to comment
Share on other sites

I have installed ver .0.0.70 but the example with the lamp and button dosen't work anymore. What do I need to change? I understand that you can configure topic in the device now... What is the topic name it that example? I have tested with home/command and also fibaro_out with no success

 

Link to comment
Share on other sites

2 hours ago, petrho said:

I have installed ver .0.0.70 but the example with the lamp and button dosen't work anymore. What do I need to change? I understand that you can configure topic in the device now... What is the topic name it that example? I have tested with home/command and also fibaro_out with no success

 

remove topic from switch. at all

Link to comment
Share on other sites

Hmm. I have maybe mixed up everything with the topic now. Can you please expain MQTT Topic for Server, Dispatcher and the Device node

Link to comment
Share on other sites

5 minutes ago, petrho said:

Hmm. I have maybe mixed up everything with the topic now. Can you please expain MQTT Topic for Server, Dispatcher and the Device node

Please login or register to see this code.

 

and new flow without a topic in UI controls

 

Please login or register to see this code.

 

aaa! sorry bug! :(

past-copy from another my module. sorry

Link to comment
Share on other sites

Just now, petrho said:

thanks, how is your server and dispatcher configured now?

nothing changed.

Please login or register to see this code.

 

Link to comment
Share on other sites

everything is working but the "button" is not changed when I use the native fibaro app...

Link to comment
Share on other sites

Please login or register to see this image.

 

Fi9KEQc1VX.png

 

so. it;'s mean what you not rcv in messages.

 

please check here wIVcyvkE8H.png

 

and here VrYUNTkDaU.png

nessages

Link to comment
Share on other sites

8 minutes ago, 10der said:

Please login or register to see this image.

 

Fi9KEQc1VX.png

 

so. it;'s mean what you not rcv in messages.

 

please check here wIVcyvkE8H.png

 

and here VrYUNTkDaU.png

nessages

nothing from the debug nodes when using the fibaro app

Link to comment
Share on other sites

53 minutes ago, petrho said:

nothing from the debug nodes when using the fibaro app

both?

on first node you should recvd all mesages

so you have the wrong configuration from out from hc2-server

 

full flow here

 

Please login or register to see this code.

 

 

Link to comment
Share on other sites

10 minutes ago, 10der said:

both?

on first node you should recvd all mesages

so you have the wrong configuration from out from hc2-server

 

full flow here

 

Please login or register to see this code.

  

 

now the button is moving when using the native app but when I use the buttion nothing happened. Can it be wrong topic? See picture

 

Please login or register to see this attachment.

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...