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

Fibaro HCL virtual devices newbie questions


Question

Posted

Hi all,

My first post and new to Z-Wave but dived into a Fibaro setup based around the HCL. I've got a couple of questions I'm hoping for some help with?

1. Recognising the HCL doesn't support LUA but can I set global variables based on what is returned via a crafted TCP packet on a Virtual Device (also will LUA code work in a virtual device on the HCL)?

2. I've got Fibaro door sensor that refuses to be discovered, tried the cumbersome reset process which had worked previously but still refuses, any tips (it was previously working until I joined it with my Razberry)?

3. Is there a stable 4.x release for HCL or should I avoid until post beta (looking at plugins most notably)?

Many thanks

PL

4 answers to this question

Recommended Posts

  • 0
Posted

Packet Loss, answering your questions:

- you can use string in virtual device to change global variables. I attached one as an example. You can not use LUA anywhere in HCL

- Please make sure, that both buttons are pushed when you try to add a device to the system

- There are no alpha/beta releases for HCL, its 4.X firmware will follow soon after HC2 4.X premiere

To use attached device:

Change IP to 127.0.0.1 and port to 11111.

Now you need authorization. To do that enter

Please login or register to see this link.

fill the field with your credentials in following manner: login:password (e.g. admin:admin). Now change credentials in virtual device.

Please login or register to see this link.

  • 0
  • Inquirer
  • Posted
    Packet Loss, answering your questions:

    - you can use string in virtual device to change global variables. I attached one as an example. You can not use LUA anywhere in HCL

    - Please make sure, that both buttons are pushed when you try to add a device to the system

    - There are no alpha/beta releases for HCL, its 4.X firmware will follow soon after HC2 4.X premiere

    To use attached device:

    Change IP to 127.0.0.1 and port to 11111.

    Now you need authorization. To do that enter

    Please login or register to see this link.

    fill the field with your credentials in following manner: login:password (e.g. admin:admin). Now change credentials in virtual device.

    Many thanks for the response and useful advice, it works as you've described and exposed the API to me now so I have a whole new avenue to explore

    Please login or register to see this image.

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

    However I wanted to set the global variable based on a response from the web server. For example if I send a HTTP GET to

    Please login or register to see this link.

    I want to save the response in Fibaro global variables?

    Also I have the FGK-101 and it doesn't talk about holding down buttons to do a reset, is there a mistake in the manual, what's the full process for reset as you understand it?

    [ Added: 2014-11-04, 16:28 ]

    Door sensor would not join no matter how I reset, however found method on Youtube which involves tapping TMP INSIDE the cover 3 times and it worked perfectly:

    • 0
    Posted

    Packet Loss, D/W does not have auto inclusion, hence it would not simply join network after reset. You must hold down one of the two buttons (one is inside, the other one at the bottom) and click th other one 3 times. That is why I mentioned holding down two buttons.

    I am afraid writing value from external server to global variable is impossible, however you can try to achieve it by external POST call e.g. use you Raspberry to process the data and update global value basing on this.

    • 0
  • Inquirer
  • Posted
    Packet Loss, D/W does not have auto inclusion, hence it would not simply join network after reset. You must hold down one of the two buttons (one is inside, the other one at the bottom) and click th other one 3 times. That is why I mentioned holding down two buttons.

    I am afraid writing value from external server to global variable is impossible, however you can try to achieve it by external POST call e.g. use you Raspberry to process the data and update global value basing on this.

    That's what I did every time, I always put the cover back on before hitting the external TMP button 3 times but have now realised what I think the problem is. The external cover doesn't always hit the internal TMP button properly (so in a sense it wasn't pressed). Obviously by holding the external button and tapping the internal button avoided the issue (as the Youtube video shows).

    That solution actually works better for my needs, since at least I know if the Raspberry is setting the global variable via the API, that the Raspberry has actually done what it said it would do (otherwise you never know if the POST actually got there or did anything).

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