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


  • 0

Small Iviewer (command fusion) test


Guest deraaij
 Share

Question

Guest deraaij

Hi,

Inspired by Adv.Usr.sztywniak's example on openremote, I did a test with Iviewer / Command fusion and fibaro:

Regards,

Mark

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
Guest sztywniak
  • Inquirer
  • Congratulations, looks beautiful

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
  • Inquirer
  • Sorry was not able to post is sooner but the dimmers also works:

    Link to comment
    Share on other sites

    • 0

    Hi Guys,

    I want to integrate The Fibaro system into Command Fusion and Demopad are you able to point me in the right direction for commands, replys 2 way feed back etc?

    BTW I am very new to Fibaro.

    Thanks in advance

    Regards

    Peter

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
  • Inquirer
  • Hi,

    For api commands see:

    Please login or register to see this link.

    .

    I use a control system (basic test written in python) (which I run on my NAS, to decouple command fusion iviever and the HC2, see:

    Please login or register to see this link.

    You can also use iviewer without a self-made control system see:

    Please login or register to see this link.

    for more info.

    If you have questions let me know (sorry for my lag in respond time but I am really busy at work......

    Link to comment
    Share on other sites

    • 0

    Hi !

    How do you make synchro between command fusion and HC2?

    Because when you put light on with iphone application, immediatly the iviewer can see it...

    Do you pull it every second? or there is timeout on HC2 that inform you on change?

    Thanks!

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
  • Inquirer
  • Hi !

    How do you make synchro between command fusion and HC2?

    Because when you put light on with iphone application, immediatly the iviewer can see it...

    Do you pull it every second? or there is timeout on HC2 that inform you on change?

    Thanks!

    I made a scene which triggers on a state change and communicates this via TCP to my, in the middle, commandfusion (python) control system

    Link to comment
    Share on other sites

    • 0

    Hum ok !

    interresting!

    Can you put a part of your script...?

    Do you know if we can do this with fibaro API..?

    Because with VERA (micasaverde) API, there are a timeout function that say when a device change state...

    I look on fibaro API with chrome developper windows, and i see a request that tell what device are change...

    Please login or register to see this code.

    When nothing change the answer is :

    Please login or register to see this code.

    If something change it say us :

    Please login or register to see this code.

    There are 2 parameter "last" and "rand" but i don't know how use it... and i don't know how make for this timeout answer...

    If you have idea...

    Thanks

    Link to comment
    Share on other sites

    • 0

    algeroth, the 'last' value is returned by HC2 reporting the last time a change occured.

    The 'rand' value is optional and I guess it is used by HC2 as a 'heartbeat'.

    When you want to use api/refreshStates from an external application, you first request it without parameters:

    Please login or register to see this link.

    ip/api/refreshStates

    The HC2 will return a value in 'last' parameters that reflects the last time a change occured with any device.

    You then use this 'last' value as a parameter and the HC2 will respond with the list of devices that recorded a change in their status:

    Please login or register to see this link.

    ip/api/refreshStates?last=

    Hope this is clear enough.

    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
    Answer this question...

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

     Share

    ×
    ×
    • Create New...