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

Virtual Device - Commands


Kime

Question

Hi,

I'm wondering what kind of code is used for the virtuel devices.

can u get some variable before i send then over HTTP, can i do calcuations?

eg . command:/jsonrpc?request={"jsonrpc":"2.0","method":"Input.Home","id":1}

Are there other command expect comman ?

is there a list ?

thanks !

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi Kime,

The virtual device buttons and sliders send TCP payloads to an ip address and port.

You can construct almost any package but HCL does not allow you to modify the package during runtime with one exception: The variable _sliderValue_ is replaced by the sliders current value when sending a package. There may be other variables but they are not documented.

"Commands" as you describe are target application dependent and it seems you are looking for XBMC commands in this case. There are recent threads about that in this forum.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Thanks. The command is idd from a XBMC device.

    I'm looking to get this a step furter, like update Skype, lync, dyndns, send Twitter/facebook msg... with a scene.

    For the moment my computer is always on to update my dyndns, but theres an api, its just a http request; with i can shedule with a scene. There for i need to get some stuff done before the command

    Please login or register to see this code.

    I've noticed that scenes activiteit doesn't show in the event panel. So updating a twitter account is an option to get these.

    EDIT : Sending api/http request to twitter/facebook isn't that simple anymore... damm

    Link to comment
    Share on other sites

    • 0

    Yes any service requiring more than basic authentication over http is a problem. https is not possible with HCL. cookies or session tokens are also not possible. Even the dyndns fails because you need to send you current IP so it can't be hardcoded in the virtual device.

    Put up proxy server to handle all these complexities for you. A Synology NAS or similar will do fine.

    You can then trigger the actions from HCL but without dealing with all the complexities inside HCL.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • or even better ceate a

    Please login or register to see this link.

    connector.

    then there could me a lot of options

    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.

    ×
    ×
    • Create New...