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

3 hours ago, Kage said:

is there a way to get more than 1 payload values to HC3

/api/plugins/callUIEvent?deviceID={{ID}}&elementName=Trigger&eventType=onChanged&value={{data}}

payload data tru NodeRed =16

in HC3 i get UIEvent: {"deviceId":966,"values":[16],"eventType":"onChanged","elementName":"Trigger"}

 

in values i wanted a extra static number like 999 from NodeRed

 

 

Don't use callUIEvent, it's only for buttons and sliders and carry a limited value.

Use POST /api/devices/{id}/action/{name} payload 

{ "args": [arg1,arg2,arg3,...]}
 

and the name is a name of a function QuickApp<name>(arg1,arg2,arg3,...) function defined for the QA.

Link to comment
Share on other sites

I have been using Fibaro HC2 for many years and have a number of VD's. I struggled to find a very basic sample in this Forum to enable me to "press" buttons on my HC2 VD from Nodered pallete (node-red-contrib-fibaro-devices by @10der).

 

Herewith one of my working samples that enables me to press buttons on a HC2 VD (Home Status) that might help others that wants to do something similar.

Please login or register to see this attachment.

 

Nodered flow with fibaroXActor node:

Please login or register to see this image.

/monthly_2023_11/Screenshot2023-11-14at14_27_30.png.b00fd1a9a0e9c17857b5d477ee9a5f09.png" />

 

 

Please login or register to see this code.

 

 

Please login or register to see this attachment.

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