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

save vd through api, scene or vd ?


Question

Posted

Hi,

Is it possible to save a vd though code in s a scene, a vd or with a API call.

I have some vd's that stop and a manual save recovers them. looking to do this programatically if possible

 

Thanks

7 answers to this question

Recommended Posts

  • 0
Posted

Hi @AutoFrank,

 

as far as i'm aware @marecki_0luk1 made a VD to load icons and he is also working on loading VD's into HC2. So maybe he's able to answer your question :-)

 

  • 0
Posted

check the very nice VD created by @annhan91

 

i have used part of his code to create VD which download and install plugins, VDs and scenes from our company page :)

 

I can't share my code, so you have to start from what in the above VD. However, just to save should be much easier.

 

  • 0
Posted

Hi @AutoFrank have a look here : 

Please login or register to see this link.

this scene has been made by one brillant member of the french forum, this scene is a must have ;)

You must  be registered if it’s not done but it’s easy just try.

  • 0
  • Inquirer
  • Posted
    13 hours ago, tinman said:

    check the very nice VD created by @annhan91

     

    i have used part of his code to create VD which download and install plugins, VDs and scenes from our company page :)

     

    I can't share my code, so you have to start from what in the above VD. However, just to save should be much easier.

     

     

    Thanks @tinman

    I took a quick look and he appears to use some of the undocumented api features (api/importvirtualdevice)

    Any idea where I can find a list even if unofficial

     

    I'll keep digging as well

    • 0
    Posted (edited)

    oh well, there are a lot of them, within the firmware, many very interesting and useful :) (e.g. the new /api/userActivity )

     

    You can use the hard way ->  you need ida decompiler (if you better understand arm then use HCL firmware), text / binary viewer, php decompiler (however this part is not interesting anymore), some c, java, asm knowledge and time - then you will find all of them and will be able to use them properly.

     

    You can try as well simply text / binary viewer and search over the unpacked firmware update file, and with some luck you can put things together and try on your test HC2. In principle lot of the functions need some params, and luckily most of them has been used somewhere in code or other similar functions, Fibaro is very consistent here, so easy to follow / try. 

     

    But remember, as they for internal use only, they might get deprecated someday.

    Edited by tinman
    • Thanks 1
    • 0
  • Inquirer
  • Posted
    1 hour ago, tinman said:

    oh well, there are a lot of them, within the firmware, many very interesting and useful :) (e.g. the new /api/userActivity )

     

    You can use the hard way ->  you need ida decompiler (if you better understand arm then use HCL firmware), text / binary viewer, php decompiler (however this part is not interesting anymore), some c, java, asm knowledge and time - then you will find all of them and will be able to use them properly.

     

    You can try as well simply text / binary viewer and search over the unpacked firmware update file, and with some luck you can put things together and try on your test HC2. In principle lot of the functions need some params, and luckily most of them has been used somewhere in code or other similar functions, Fibaro is very consistent here, so easy to follow / try. 

     

    But remember, as they for internal use only, they might get deprecated someday.

    Thanks @tinman

    I assume I can get the fw off the HC2 or the recovery USB

    Do you know if there is an online resource where I can download directly...?

     

    • 0
    Posted

    you don't the recovery iso, take simply the firmware update file, e.g. updatehcl.fibaro.com/4.162/patch.tar.gz (the last one with some deprecated php files, good to learn - when you manage to decrypt them, how push / email / etc has been designed in first place - this is now running over encrypted connection btw.) or updatehcl.fibaro.com/4.170/patch.tar.gz for the latest stable

     

    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.

    ×
    ×
    • Create New...