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

HCL and Virtual devices


TANE

Question

Hi all,

I like to control a none zwave device via virtual device.

This is working fine when using Lua.

Since lua is not available on the HC Lite.

what are the options?

This is the Lua (starting scene on the Vera)

HC2 = Net.FHttp("172.19.4.102",3480)

response ,status, errorCode = HC2:GET("/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=1")

fibaro:log("Gordijn Open")

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

non lua example

Please login or register to see this code.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • thanks.

    this is what i have done..

    no succes

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
    Guest kubilay.kupeli

    Hi,

    You should check "Wait for the device to respond" for this to work, as i know.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Thank you.

    Wait command was the trick.

    [ Added: 2014-03-05, 18:13 ]

    Sometimes it's not working..

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    When using Lua it's always working..

    Can;t find out what the problem is.

    Link to comment
    Share on other sites

    • 0

    i can us this commend to turn my nexa lamp on but how is the command to turn off?

    can anybody explain to my what in the command do what so i can understand the logic

    Link to comment
    Share on other sites

    • 0

    Tried it and worked perfectly , this is great . now i don't hate HCL that much now

    Is there anyway for this to control devices through vera ? this is ok for scenes but for example i want to use it with my door lock which is connected to a veralite .

    I also want to reverse this , run HCL scenes from vera , can i ?

    sorry , too many questions just got my HCL a couple of days ago

    [ Added: 2014-03-28, 14:30 ]

    @Skaven

    I'm using this command to turn my lights on and off

    Please login or register to see this code.

    You will have to change the " device number " and the " new target value " , in this case i'm using a dimmer to 0 is to turn it off and 100 to on ( or whatever level you want )

    Link to comment
    Share on other sites

    • 0

    Can i talk to this device on my HCL

    Please login or register to see this link.

    It is an ethernet to seriel "converter". If so then i could add control to old devices that do not have an HTTP interface.

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