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


Recommended Posts

Posted

I'm a bit confused... there is no way to communicate to Node-red from HC2 via mqtt broker or other solution?

 

I had a crazy idea, bit expensive but it works.. let me try to explain:

- add a fibaro dimmer

- use node red contrib fibaro hc2 - device node and inject querystate every 5/10 seconds for instance

- read the dimmer value (from 0 to 99)

- add a swich node which switch the corresponding output according to dimmer value

- in this case each dimmer value can be used as a trigger

- in HC2 add scene which set dimmer value to what required

I know.. it's quit crazy (50 euros for a dimmer.. waste).. but it works

 

Please login or register to see this attachment.

Posted (edited)

You can connect HC2 to Node-RED and Node-RED to MQTT  and the reverse.   

You can not connect HC2 directly to MQTT though which was @10der 's point.

 

So you can use it as you wish

Edited by xAPPO
Posted
10 hours ago, alexpelli said:

- use node red contrib fibaro hc2 - device node and inject querystate every 5/10 seconds for instance

wow! who is author of this constrib? :)

and please do not this!

 

image.png.9efdd366dd5bd41057a5a77f0a3799a0.png

Posted (edited)

thanks to 10der@ for the contrib.. 

the flow is just as example (very quick made)... my flows respect the total geometry :)

 

Edited by alexpelli
  • Thanks 1
Posted (edited)

v0.0.81    


 

Quote

 

Hi 10der!

 

A new version of the package node-red-contrib-fibaro-hc2 (0.0.81) was published at 2019-10-25T15:12:46.852Z from

x.x.x.x. The shasum of this package was 505b021a538570d07bdf8dac30593985824e8d3e.

 

If you have questions or security concerns, you can reply to this message or

email [email protected].

 

npm loves you.


 

1) more than 5 issues was fixed :)

2) HC server now can rcvd some custom commands in payload 

Please login or register to see this code.

Please login or register to see this code.

so, now you can call scenes and set Global vars (note! only for admin login)

 

3) also now you can query the current statuis of device

Please login or register to see this code.

just pass to device in topic with name queryState

Please login or register to see this attachment.

Edited by 10der
  • Thanks 1
  • 1 month later...
Posted

@10der when I use module for HC2 I receive randomly this error:

 

26.11.2019, 19:47:50node: HC2 msg : error
"SyntaxError: Unexpected token | in JSON at position 0"

 

I query data via API for another system and I can't find any problems. Can You help me?

 

Please login or register to see this attachment.

 

Posted

Please login or register to see this attachment.

do not use any connection to node(s) except MQTT out node

Posted

nothings change, the error are displayed :-(

SyntaxError: Unexpected token | in JSON at position 0

image.png.59865dd05b0088ed9ce78b04871eaaa8.png

but generally all flow work fine, only one problem that syslog is grow fast

Posted
13 minutes ago, drboss said:

nothings change, the error are displayed :-(

SyntaxError: Unexpected token | in JSON at position 0

Please login or register to see this link.

but generally all flow work fine, only one problem that syslog is grow fast

version?

 

node-red-contrib-fibaro-hc2
0.0.84
Posted

Yes, the latest 0.0.84

Posted

stop. Sir

where debug node connected?

Posted

ok, after restart nodered (clear buffer I things) work fine without errors like this

btw Error are disabled if all debug are set to disabled or removed :-), maybe this stay in buffer or cache.

 

Posted

after deploy problem return (all debug are checkout) and error are displayed. But after turn on / turn off debug connected to HC server node error message stoped.

Posted

@drboss question ahain where is connected debug node - i can't see debig node on u pics

Posted

Please login or register to see this attachment.

Please login or register to see this attachment.

and debug (if the debug is unchecked):

 

Please login or register to see this code.

 

Posted

but Sir

 

Please login or register to see this image.

/monthly_2019_11/image.png.481186a12f2a66e92e38419c706e6967.png" />

 

gray - it's inActive color. r u sure what u havn't any others connected debug nodes?

i am out of ideas

Posted

I'm sure :-) , I do this on clear new flow. I recreate today morning all from beginning for test like in this schema with new connection to HC2.  The error message displayed if debug is off, when I turn it on debug display normal data from HC2 too. Ex:

Please login or register to see this code.

I checked message before and after error message, any errors in data.

I haven't idea too :-(

 

Posted

I do clear installation on other R.Pi and the error displayed too with any flow (after creation of connection to HC2)

Two error is show one after one:

Please login or register to see this code.

 

Posted

ok wil check. thnak you for feedback

Posted

If You need query send after request by my HC2, no problem. Send me only what you need, /api/panels/event... or /api/devices or other request. I will send you by pm.

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