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


HC(x) + NODE-RED


10der

Recommended Posts

2 hours ago, 10der said:

i am not good undestand Sweden :) what sensor type you are use?

@petrho how many Fibari API nodes you are used?

what version (was bug with multi-connections without closing connection to HC)


it’s a fibaro wall plug. I have just one API node (I have also another raspberry with your old package)

version 0.0.17

Edited by petrho
Link to comment
Share on other sites

On 1/12/2020 at 1:51 PM, 10der said:

@project

 

 

 

Please login or register to see this link.

 

 

 

what does the topic reflects here (1590)?

Edited by petrho
Link to comment
Share on other sites

  • Topic Author
  • 8 hours ago, petrho said:
    On 1/12/2020 at 2:51 PM, 10der said:

     

    what does the topic reflects here (1590)?

    device ID

    • Like 1
    Link to comment
    Share on other sites

  • Topic Author
  • 9 hours ago, petrho said:


    it’s a fibaro wall plug. I have just one API node (I have also another raspberry with your old package)

    version 0.0.17

    it's my bug :)

    I forgot disable debug messaging

    • Like 1
    Link to comment
    Share on other sites

    Do you have a list or examples which commands to use for example dim a dimmer 2 with 30% or how to control the rgw device?  I found that both boolean and turnOn / turnOff work fine for standard relay device...

     

    Is the recommendation to set API interval to every second or will that affect the HC2 and/or the RPI? Do I still need the reset injection (if yes - why)?

     

    ...and thanks for a good tool!

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

  • Topic Author
  • 6 minutes ago, petrho said:

    commands to use for example dim a dimmer 2

    just put integer for dim value

    20 minutes ago, petrho said:

    how to control the rgw device? 

    Sir, as I can undestabd ypu never to see my examples?

     

     

     

    Please login or register to see this attachment.

    • Like 1
    Link to comment
    Share on other sites

    On 1/14/2020 at 8:04 AM, 10der said:

    it's my bug :)

    I forgot disable debug messaging

    Is it possible to disable it by myself or do I need an updated version?

    Link to comment
    Share on other sites

  • Topic Author
  • version:       0.0.18  

    added MQTT support

     

    so now you can setup fibaroAPI node:

    Please login or register to see this image.

    /monthly_2020_01/image.png.f3e3adcff448f300362462c1dcd3e38d.png" />

     

    than connect MQTT in

     

    image.png.303f2bb08ffa46f7f8730cf5d9ae09b4.png

     

    image.png.4e9066377b48aa0cbe5c94a784a78e9b.png

     

    in your HC2 import MQTT VD

    configure

     

    image.png.0561a38e1795b594fb6788a8c5978332.png

     

     

    change the topic

    image.png.5b4e5cc44954d7d3f471d2f44e3bb133.png

     

    save VD

     

    now your HC2 will publish all events to Node-red 

     

    WOW!

     

     

     

     

     

     

     

     

    Please login or register to see this attachment.

    21 minutes ago, petrho said:

    Is it possible to disable it by myself or do I need an updated version?

    just ignore it. 

    events to device should pass once

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

    thanks for this:

    Please login or register to see this image.

    /monthly_2020_01/image.png.b83f7bcef8eccec5394c7e1fe55c51e9.png" />and this image.png.9c2a9697c226ac18b6d3e0d231980d46.png

    Now is possible transfer the brain of home automation system definitely from HC2 to RPI with mqtt ;-)

     

    • Thanks 1
    Link to comment
    Share on other sites

    But I preferred old schema of naming topic. In this moment after only 30 minutes test on 0.18 ;-)  but the night is coming ...

    Ex. for device id:610:

    image.png.7a98e03e6b4b9f296a52d705c019457f.png give as topic "home/status/610" in 0.14 but in new (0.18)it's reports topic only as 610 

     

    This give the problem if you use in one flow sensor on direct  devices from two HCx ( with the same ID) without pass via HC API and mgtt in - out for set topic

     

    Edited by drboss
    Link to comment
    Share on other sites

    Wow - cool with MQTT support in HC.

     

    However - when I set the FibaroAPI mode to 0 I thought it was disabled. But when I have set to zero and haven't connected mqtt node to in - it sends data via the out pin

    Edited by petrho
    Link to comment
    Share on other sites

    and I receiving from fibaroAPI many error message in debug (if debug off, too) like:

    Please login or register to see this image.

    /monthly_2020_01/image.png.5f838008d9f68f2680f7c44f3ca4fdec.png" />

    Link to comment
    Share on other sites

    Small modification of VD, pause/restart query to mqtt server, and like in orginal it's good to create global variable MQTTBox before first run.

     

    Please login or register to see this attachment.

    • Thanks 1
    Link to comment
    Share on other sites

  • Topic Author
  • simple MQTT IN

    @drbosswelcome for fixes

     

    change topic + callback action

     

    Please login or register to see this image.

    /monthly_2020_01/image.png.4274a64ee99a350ef440c167e7807e63.png" />

     

    image.png.41a4fab9ad25fcbf8d74247c78c3d2fd.png

     

    image.png.63e85ea5c98319b96530d809af764f0f.png

     

    image.png.e924c6346858616aecaeadd59886505a.png

    Please login or register to see this attachment.

    • Like 1
    Link to comment
    Share on other sites

    @10der small question because I'm not specialist of node-red programming but if possible that You add to "fibaroSensor" place for topic (of course this is low priority ask):

    Please login or register to see this image.

    /monthly_2020_01/image.png.64d92ea861dc5faf6a69b91a925fd8dc.png" />

    this useful if we use fibaroSensor without VD for get the result like  "/HC-001010/502 : msg : Object" in place of "502 : msg.payload : Object".

    ps. After night with HC2 and node-red I say ... you work is very impressive, THANKS. It give second live to my HC2. With RPI zigbee and 433 RMpro I'm sure than now I'm not interested to bay HC3 (very secured -> restricted model :-( ) for my house. 

    Link to comment
    Share on other sites

    @10der small question because I'm not specialist of node-red programming but if possible that You add to "fibaroSensor" place for topic (of course this is low priority ask):

    Please login or register to see this image.

    /monthly_2020_01/image.png.64d92ea861dc5faf6a69b91a925fd8dc.png" />

    this useful if we use fibaroSensor without VD for get the result like  "/HC-001010/502 : msg : Object" in place of "502 : msg.payload : Object".

    ps. After night with HC2 and node-red I say ... you work is very impressive, THANKS. It give second live to my HC2. With RPI zigbee and 433 RMpro I'm sure than now I'm not interested to bay HC3 (very secured -> restricted model :-( ) for my house. 

     

     

     

    and small modification for last VD MQTT_Handler, line 238:

    Please login or register to see this code.

     

    Edited by drboss
    Link to comment
    Share on other sites

    After migration to 0.18 what can I do for thermostat?

    1. I create fibaroXActor with Actions like this:

    Please login or register to see this code.

    and my question what I need to send in injection to this Actor to work? 

    Link to comment
    Share on other sites

  • Topic Author
  • Please login or register to see this code.

    Please login or register to see this code.

    as string

    Link to comment
    Share on other sites

  • Topic Author
  • Please login or register to see this code.

    IMHO

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