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

hi!

 

here is my new node-red node for FIBARO HCx

 

Please login or register to see this link.

 

now you can use finaroSenor node - for any sensors in HC and fibaroActor for binary or multilevel switchers.

also you  can use fibaroXActor for building custom actors like Thermostat and turn on / off Mode / Level / etc parameters.

 

here is simple intergration with node-red UI

Please login or register to see this image.

/monthly_2020_01/image.png.dd19ea2cd84ed1e9c6f00f618e380534.png" />

 

 

image.png.3613a53e1127172a5ad9d4ec74b41ced.png

 

you can click in UI and switch on / off fibaro power plug... or click B-button on fibaro power plug....

 

also you can build own dash board 

 

image.png.2c1db68d7439d6d54c4857b42e71142e.png

Please login or register to see this attachment.

 

 

NOTICE : PLASE DO NOT USE MORE THAN 1 (one) "FIBARO API NODES" FOR 1 (one) HC SERVER!

 

 

happy HA!

 

O.

 

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

Upgrade work fine from 0.14, the version in pallets show okey.  I start migrate my flows from older version (last edition 0.0.84)

  • Thanks 1
Link to comment
Share on other sites

  • Topic Author
  • please up to 15.

    some minor but stupid errors fixed

    Link to comment
    Share on other sites

    Hi 

     

    it is possible to change value on HC2 virtual device from external source with  this Node Red flow ?

     

    thank you

    Link to comment
    Share on other sites

  • Topic Author
  • @project

    Please login or register to see this image.

    /monthly_2020_01/image.png.e0780665c9b28522884fcc8b91068a2c.png" />

     

     

    image.png.257b13ba1bdbfb77f20634fafb94a07a.png

    Please login or register to see this code.

     

    image.png.1314fde82617eeee8dd26a0c611f38f5.png

     

    Link to comment
    Share on other sites

  • Topic Author
  • @10der how to query the current value:

    Please login or register to see this attachment.

     

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Guest kallecux

    Hi 10der!

     

    Is there a way to change a global variable?

     

    I found different informations in the forum, but .....

     

    Thanks for your good job!

    Karl Heinz 

    Link to comment
    Share on other sites

  • Topic Author
  • 38 minutes ago, kallecux said:

    Is there a way to change a global variable?

    changing glob vars require admin rights for HC.

    so. currentky I removed all code with glob var.

    you can change glob vars via VD. call VD press button fron node-red and change your glob var.

    as well as in next ver i will create node for reading and event changes for globa vars.

    Link to comment
    Share on other sites

    @10der  

     

    Sorry, but I'm doing something wrong and I can't go through it,  i have always error msg:  "TypeError: Cannot read property 'ipaddress' of null"    on both inject and querry .  

     

    I have this  VD device 

    {"id": 135,"name": "Buderus","roomID": 0,"type": "virtual_device","visible": true,"enabled": true,"properties": {"categories": "[\"other\"]","deviceIcon": 0,"ip": "","port": 80,"currentIcon": "0","log": "","logTemp": "","mainLoop": "","ui.Label1.value": "2","ui.Label2.value": "20","visible": "true","rows": [{"type": "label","elements": [{"id": 1,"lua": false,"waitForResponse": false,"caption": "Tlak","name": "Label1","favourite": false,"main": false}]},{"type": "label","elements": [{"id": 2,"lua": false,"waitForResponse": false,"caption": "Teplota","name": "Label2","favourite": false,"main": false}]}]},"actions": {"pressButton": 1,"setSlider": 2},"created": 1576694268,"modified": 1576694268,"sortOrder": 108}

     

    When i change the  ui.Label1.value and ui.Label2.value , via browser with  .... api/callAction?deviceID=135&name=setProperty&arg1=ui.Label2.value&arg2=20 ... this is without problem . 

    thanks

    Link to comment
    Share on other sites

  • Topic Author
  • @project is your HC node blinking with green?

     

    Please login or register to see this image.

    /monthly_2020_01/image.png.7dca2564b7f477635c155a892c98454c.png" />

    another question is query node has right HC APi node?

    somtimes after importing node-red add a NEW EMPTY config node with empty paramenets,

    Edited by 10der
    Link to comment
    Share on other sites

  • Topic Author
  • i have import my flow on another server. and.... YES! now I have 2 (two) HC2 config node

    a new created config node - WRONG. please delete this node.

    I do not know why it happened!

    Please login or register to see this image.

    /monthly_2020_01/image.png.4ed117ac18a7500f7dbcc003d85591b2.png" />

    Link to comment
    Share on other sites

    Hi 

     

    do I have both flows  "node-red-contrib-fibaro-devices" and "node-red-Contrib-fibaro-hc2" installed or only  the .......fibaro-devices ? 

    Link to comment
    Share on other sites

    Because only with the flow "node-red-contrib-fibaro-devices" i dont have visible the node fibaro-server 

    Link to comment
    Share on other sites

  • Topic Author
  • no. pleas remove totally old package!

    Link to comment
    Share on other sites

    Hi and thanks for the new package.

    Why do I get double or triple responses?

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

  • Topic Author
  • 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)

    Link to comment
    Share on other sites

    Hi @10der

     

    can you help me please .  I don't understand the logic of this . What should i wrote in the inject node and Xactor node when i want change the value of Label2 on the VD device nr 135 ? 

     

    thank you

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