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

Change the state of a variable


Question

Posted

good evening
spell to make a VD to change the state of a variable ... i found something on the forum but it does not work .... i have the latest version 4.520

Thank you

5 answers to this question

Recommended Posts

  • 0
Posted

Hello

 

Please could you give more information of what type of variable it is?

What code have you tried?

If you don’t know could you add some screenshots to what you’re referring too

 

Thanks

  • 0
  • Inquirer
  • Posted

    I want to make a VD with 2 "Away", "Home" buttons, and I tried the following code ....

     

    PUT /api/globalVariables/MyHome HTTP/1.1
    Host: 192.168.1.36
    Authorization: Basic bWFyYy5yYWR1dUcmM=

    {"name":"MyHome","value":"Home"}

    • 0
    Posted (edited)

    Hi
    I have one that works, just adjust it to your language

    Please login or register to see this attachment.

         

    Please login or register to see this spoiler.

     

    All spaces and almost empty lines must be exactly as in the file. Use Copy Paste

     

    Page 1: Ip Address 127.0.0.1
    Page 1: TCP Port: 11111

     

    Be aware that it does not trigger the scene.
    As if you change the scene in the variable panel, it will not be triggered.

    Edited by hTiger1
    • 0
  • Inquirer
  • Posted

    @hTiger1....Thank you very much ... now it works

    • 0
    Posted
    On 12/11/2018 at 9:17 AM, wrongme said:

    I want to make a VD with 2 "Away", "Home" buttons, and I tried the following code ....

     

    PUT /api/globalVariables/MyHome HTTP/1.1
    Host: 192.168.1.36
    Authorization: Basic bWFyYy5yYWR1dUcmM=

    {"name":"MyHome","value":"Home"}

    I guess lua is not available on the HCL model?

    Please login or register to see this code.

     

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