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

  • Topic Author
  • some usefull flows

    1) get rooms and store in global context

    Please login or register to see this code.

     

    Please login or register to see this image.

    /monthly_2020_01/image.png.8ead5805fb514e82af5f5f697baa4402.png" />

     

    2) het all ligths and sjow in table

    Please login or register to see this code.

     

    Please login or register to see this attachment.

     

    image.png.aa69aa7d46af3a495385bff41141aacb.png

     

    Link to comment
    Share on other sites

    ad.2 return empty area, why?

    31.01.2020, 12:48:33node: 3a33ce9c.9201ba

    visible=true&enabled=true&interface=light&property=[isLight,true] : msg : Object

    object

    _msgid: "38a46297.e48cbe"

    topic: "visible=true&enabled=true&interface=light&property=[isLight,true]"

    payload: 1580471313713

    currentState: array[0]

     

    31.01.2020, 12:48:33node: b61a848f.ccb63visible=true&enabled=true&interface=light&property=[isLight,true] : msg.payload : array[0]

    [ empty ]

    Link to comment
    Share on other sites

  • Topic Author
  • 52 minutes ago, drboss said:

    ad.2 return empty area, why?

    31.01.2020, 12:48:33node: 3a33ce9c.9201ba

    visible=true&enabled=true&interface=light&property=[isLight,true] : msg : Object

    object

    _msgid: "38a46297.e48cbe"

    topic: "visible=true&enabled=true&interface=light&property=[isLight,true]"

    payload: 1580471313713

    currentState: array[0]

     

    31.01.2020, 12:48:33node: b61a848f.ccb63visible=true&enabled=true&interface=light&property=[isLight,true] : msg.payload : array[0]

    [ empty ]

    query by string supported >0.32

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

    You update to fast ? at last night I updated to fresh 0.32 and today I don't things to check for new version. 

    Thx

    Link to comment
    Share on other sites

    For query can I use any of parameters and property, i things yes? and for VD too? I ask because I'm on trip without stable access to my test HC2. Another question about global variable, is it possible to use it as (like) the sensor if changed.

    Link to comment
    Share on other sites

  • Topic Author
  • 26 minutes ago, drboss said:

    For query can I use any of parameters and property,

    yes. aby for devices.

     

    27 minutes ago, drboss said:

    about global variable,

    it's pain.

     

    reading not impemented yet

    changing - pain pain pain :) no admin access

    Link to comment
    Share on other sites

    Yes i know limitation for no admin access, i things for most case only reading is ok. For change, if needed and acceptable from risk point of view, is no problem use rest api. But for use as trigger in mqtt ... we wait for next step of your big work ;-)?

    Link to comment
    Share on other sites

    I forgot, but error generate by FibaroApi without debug returned (i not remember exactly the version from return):

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • 4 hours ago, drboss said:

    I forgot, but error generate by FibaroApi without debug returned (i not remember exactly the version from return):

    Please login or register to see this code.

     

    Payload empty json {}
    topic query

    Link to comment
    Share on other sites

    Another issue after upgrade > 32

    FibaroSensor stopped inform about scene events. Before they give payload.value.keyId and payload.value.keyAttribute when any buttom for ex on remote is pressed if "Handle additional events" checked.

    second method don't work too

    FibaroAPI inform about scenes events:

    Please login or register to see this code.

    but without device ID. And it's not usable without device ID.

    Link to comment
    Share on other sites

  • Topic Author
  • 1 hour ago, drboss said:

    Another issue after upgrade > 32

    FibaroSensor stopped inform about scene events. Before they give payload.value.keyId and payload.value.keyAttribute when any buttom for ex on remote is pressed if "Handle additional events" checked.

    second method don't work too

    FibaroAPI inform about scenes events:

    Please login or register to see this code.

    but without device ID. And it's not usable without device ID.

    Opps 

    sorry 

    in work trip 

    will be at home tomorrow 

    Link to comment
    Share on other sites

    don't worry, the world is better with your app with this small problem that without this apps. I wait and quiet return to home

    Link to comment
    Share on other sites

    hi,

    can somebody say me what i has to wirte in the example node from 10der?

    my Problem:

     

    in the example there is a motion sensor with lux an timeofday with dimming stats, my problem is that i dont have a rgb aktor is use the dimmer2 and i dont know what i has to write in the passtru node so that the dimmer will dimm my lamps automitacally in the night and other in the day.

     

    actually there is wirtten: 

    if (msg.payload > 0) {
        msg.payload = {
            name: "setColor", 
            arg1:255, 
            arg2:255,
            arg3:255,
            arg4:255
        };
    } else {
        msg.payload = {
            name: "turnOff"
        }
    }
    return msg;

     

     

    and this i need for dimmer 2 not for rgb.

    thanks for your help

    Link to comment
    Share on other sites

  • Topic Author
  • @ctyd LoL

     

    Please login or register to see this code.

    please change deviceId

    Link to comment
    Share on other sites

    thx for your answer but that i dont mean my english is not so good sorry.

     

    Please login or register to see this attachment.

     

    i mean the node in my picture there is code for rgb but i need code for dimmer and dont know what i have to write there.

    Link to comment
    Share on other sites

  • Topic Author
  • I can't see inside node via image :) 

    please show me code

    Link to comment
    Share on other sites

    Please login or register to see this image.

    /monthly_2020_02/image.png.21f6125043c42f211a96fd5cfb206468.png" />

    you know what i mean? the Example is from you, i want that the dimmer has the dimm lvl from the example, but in your example you use a rgb aktor and i have a dimmer, i need the code for the dimmer

     

     

    Edited by ctyd
    Link to comment
    Share on other sites

  • Topic Author
  • Drop this node. Just drop. And replace actor on actor 

    that’s all

    actor can get int value as dimmer 

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