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

Just a request if you do not mind, can the MQTT (root/sub-)paths be changed by user?

Link to comment
Share on other sites

** DELETED **

 

You're &*I%ing fast! ;D

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

Can I create a path that includes the room ?

Link to comment
Share on other sites

interesting question... 

now modelue support publishing only in a/b/c/devliceID notation 

and as an undocumented feature module publish additional properties as 

a/b/c/ devliceID/prop

for example 

 

 

your idea a/b/c/roomName/devliceID  is challenging idea... but :(

cdXMEtkj7Q.png

... but I can grab rooms on start and can change the topic via config, for example!

Link to comment
Share on other sites

At the moment I can adapt your previous flow so it’s no problem ...  unless the capabilities start to diverge significantly.

 

It,s a shame you have to poll but until Fibaro assist by implementing something that’s the way it has to be...

 

Thanks for this... it’s allowing Fibaro to catch up a bit with the rest of the world.

Link to comment
Share on other sites

Please login or register to see this image.

 

do not forget change subscribe pattern

 

ps: do not ask me to provide room name instead of roomID... 

Cyrillics / umlauts... topic - idk how MQTT working with it....

sorry

Edited by 10der
Link to comment
Share on other sites

jFYI

Please login or register to see this link.

 

 

npm notice
npm notice package: [email protected]
npm notice === Tarball Contents ===
npm notice 376B   package.json
npm notice 2.0kB  README.md
npm notice 4.2kB  fibaro-hc2/fibaro-hc2.html
npm notice 16.4kB fibaro-hc2/fibaro-hc2.js
npm notice 2.3kB  icons/fibaro_hc2.png
npm notice 20.8kB images/example.png
npm notice === Tarball Details ===
npm notice name:          node-red-contrib-fibaro-hc2
npm notice version:       0.0.45
npm notice package size:  26.9 kB
npm notice unpacked size: 46.1 kB
npm notice shasum:        9ca6c8d44f998c1f1f4badaec83e279a16222392
npm notice integrity:     sha512-pGIUi6Q/e963W[...]Vb5LTG0nxqg0A==
npm notice total files:   6
npm notice
+ [email protected]

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

Hi, this is very cool topic! Thanks for all contributors. Atleast community ppl work on dusty Fibaro dino to look fresh'n'cool 8-)

 

This is really cool way for those have another device (like Pi) running. But for the common users would be much better to have the MQTT broker running on the HC* side.

Link to comment
Share on other sites

 

47 minutes ago, jack.daniels said:

But for the common users would be much better to have the MQTT broker running on the HC* side.

¯ \ _ (ツ) _ / ¯

Link to comment
Share on other sites

@10der I'm trying to figure out this node-js/npm thing (on my raspberry) for a while now. Can you give us some basic node-js command examples, for example to update/upgrade/install and so on?

 

Keep on the good work! It's highly appreciated!

Link to comment
Share on other sites

cd :~/.node-red

npm install node-red-contrib-fibaro-hc2

/etc/init.d/node-red restart

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

Thanks! Are there minimum npm/NodeRed version requirements?

Edited by Lambik
Link to comment
Share on other sites

btw. after round the clock :) module will be acceptable in nore-red palette.

Please login or register to see this link.

7 minutes ago, Lambik said:

minimum npm/NodeRed version requirements?

 

no restrictions

btw.,

about HC-device: just simple wrapper for filtering messages by id/property.

qihA4gASw2.png

 

7WE2fiZ0QS.png

 

notice: all messages from HC2 passed to MQTT in 

you_ topic/room_if_configured/deviceId/value_or_propery

 

so. if you setup in hc2-device just only id (or name) you will get _all_ messages from your device, for example, if a device is a wall plug you will get:

 

you_ topic/room_if_configured/125/value (on / off)

you_ topic/room_if_configured/125/power

you_ topic/room_if_configured/125/power(supply pressure)

you_ topic/room_if_configured/125/blabla

 

so, if want to get _only_ on / off state just configure as "125/value"

 

 

 

 

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

Just to go a bit off-topic...

 

I was thinking, can the 'get last past param' be initiated by the HC2 (using lua) and send it to a scene, using https (like I did with my scene solution)?

 

Or will this be a 'slow' solution?

Edited by Lambik
typo
Link to comment
Share on other sites

1 minute ago, Lambik said:

'get last past param'

 

What do you get out of it? example, please!

Please login or register to see this image.

Link to comment
Share on other sites

Well, I seeking a way to get the data encrypted that way. I know this will only work one way: HC2 --> HTTPS to Node-Red --> MQTT.

 

Secondly, you can use the initialisation (trigger) by using lua VD or scene.

 

But if I'm talking rubbish, then just ignore me... ;)

Edited by Lambik
Link to comment
Share on other sites

Quote

 HC2 --> HTTPS to Node-Red --> MQTT.

 

fibaro? ssl? a-ha-ha.. 

i. e. miaow! :)

6 minutes ago, Lambik said:

get the data encrypted that way

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

Edited by 10der
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...