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

Holiday mode on HCL


HomeSystem.sk

Question

Hey guys,

sorry but Fibaro support is not helping so maybe you can.

I need to create VD for HCL which will set the heating panel to holiday mode. I found the script for LUA and tried to get the info out, but no success. I think this works for LUA.

Please login or register to see this code.

But how do I do it in HCL? How do I trigger jsonTable in HCL? Is that possible at all? I dont need anything fancy, just a way to turn the holiday mode on and off via phone.

Thanks

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

create VD with 2 buttons.

 

button 1: Normal mode (= heating panel scheme is active)

"id" = id of the heating panel you want to control

"name" = name of the heating panel you want to control

 

YWRtaXXXXXXXXXXXXX has to be replaced with the Base64 decodation of your user and pwd. See below.

Please login or register to see this code.

button 2: Vacation mode (= heating panel holiday mode is active)

"id" = id of the heating panel you want to control

 

"name" = name of the heating panel you want to control

"vacationTemperature" = temperature you want when HCL heating panel is in holiday mode

 

YWRtaXXXXXXXXXXXXX has to be replaced with the Base64 decodation of your user and pwd. See below.

Please login or register to see this code.

Be aware of copy/paste errors, especially with <spaces>. About the string:

Please login or register to see this code.

  1. remplace <space> with a space
  2. remplace <command> with the PUT command you need to control the HCL. In your case "/api/panels/heating"
  3. remplace <user:pwd inBase64> To calculate Base64 use 

    Please login or register to see this link.

    . Example user = admin; pwd = admin, the text to decode is admin:admin,  result of this decodation is YWRtaW46YWRtaW4=
  • Like 1
Link to comment
Share on other sites

  • 0
  • Inquirer
  •  

    create VD with 2 buttons.

     

    button 1: Normal mode (= heating panel scheme is active)

    "id" = id of the heating panel you want to control

    "name" = name of the heating panel you want to control

     

    YWRtaXXXXXXXXXXXXX has to be replaced with the Base64 decodation of your user and pwd. See below.

    Please login or register to see this code.

    button 2: Vacation mode (= heating panel holiday mode is active)

    "id" = id of the heating panel you want to control

     

    "name" = name of the heating panel you want to control

    "vacationTemperature" = temperature you want when HCL heating panel is in holiday mode

     

    YWRtaXXXXXXXXXXXXX has to be replaced with the Base64 decodation of your user and pwd. See below.

    Please login or register to see this code.

    Be aware of copy/paste errors, especially with <spaces>. About the string:

    Please login or register to see this code.

    1. remplace <space> with a space
    2. remplace <command> with the PUT command you need to control the HCL. In your case "/api/panels/heating"
    3. remplace <user:pwd inBase64> To calculate Base64 use 

      Please login or register to see this link.

      . Example user = admin; pwd = admin, the text to decode is admin:admin,  result of this decodation is YWRtaW46YWRtaW4=

     

    Thanks a lot Patrick, you are the best. It works like a charm.

     

    Now I see how you did it, so the basic is the last thing you stated and then from the json table you take vacationTemperature = 15 and you change the form of it to "vacationTemperature":10 plus you define the id of device. Great, really thanks.

     

    Just for the people who will be looking at this, for the VD the IP is 127.0.0.1 and TCP 11111

    I hope thats universal

    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" />

    • Like 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • I have one more question here -

    is it possible in HCL to get info about holiday mode to the application?

    So basically to see in the app, if holiday mode is on or off?

     

    Thanks for help

    Link to comment
    Share on other sites

    • 0

    Hi Guys

    Are there some that can help with the above VD.
    I have a VD to Reboot, which works perfectly.
    And a VD to modify global variables that will work perfectly.
    But I can not change the heating panel with VD, simply can not get it to work, have tried at least 10 times, with Patrik's recipe.

    Thanks in advance.

    It works now.
    Thanks for sharing, Patrick

    Edited by hTiger1
    Link to comment
    Share on other sites

    • 0

    Hi
    Is there a friendly user who will share a  *.vfib file,
    with the code to put the heating panel in holiday mode on HCL
    Thanks in advance.

    It works now.

    Edited by hTiger1
    Link to comment
    Share on other sites

    • 0
    On 4/15/2016 at 2:33 PM, HomeSystem.sk said:

    I have one more question here -

    is it possible in HCL to get info about holiday mode to the application?

    So basically to see in the app, if holiday mode is on or off?

     

    Thanks for help

     

    yes,

    do not use the VD to manage the holiday mode but instead use a scene.

    The scene will start the VD (so same action as clicking VD) but also write on the VD the status of the label "Holyday" by setting it to ON or OFF.

    From the app you can read the VD label and understand how the HCL is currently set.

    Please login or register to see this attachment.

    Edited by Flowy
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 3 hours ago, Flowy said:

     

    yes,

    do not use the VD to manage the holiday mode but instead use a scene.

    The scene will start the VD (so same action as clicking VD) but also write on the VD the status of the label "Holyday" by setting it to ON or OFF.

    From the app you can read the VD label and understand how the HCL is currently set.

    Please login or register to see this attachment.

     

    You just thought me something, thanks. I did not know about this

    Link to comment
    Share on other sites

    • 0
    4 hours ago, Flowy said:

     

    yes,

    do not use the VD to manage the holiday mode but instead use a scene.

    The scene will start the VD (so same action as clicking VD) but also write on the VD the status of the label "Holyday" by setting it to ON or OFF.

    From the app you can read the VD label and understand how the HCL is currently set.

    Please login or register to see this attachment.

    Hi
    Want to share how you did.
    Thanks in advance.

    Link to comment
    Share on other sites

    • 0

    I am also very eager to learn how the ON get there to the label Risc Mansarda. Would appreciate to see the commands used fro HCL.

    kuno

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