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

How to remember device value ?


Question

Posted

Hello

i want to create virtual device with functionality - Turn HOME OFF/ON

(turn off part of devices when i leave and turn on them when i come back)

I want to save status/value of devices witch is turned on before turn them off and to restore same status/value when i press Turn ON button. I can do that using global variables, but to create 100+ variables from interface for each device is too long process.

It's another way to do it ?

2 answers to this question

Recommended Posts

  • 0
Posted

Sure, create a "binary" variable (or several but not many for grouping) of length equal to the number of devices you have and represent the On status as 1 and Off as 0.

With several:

Variable Value

Dev00-09 0010001011

Dev10-19 1110001111

Dev20-29 1110001111

  • 0
  • Inquirer
  • Posted
    Sure, create a "binary" variable (or several but not many for grouping) of length equal to the number of devices you have and represent the On status as 1 and Off as 0.

    With several:

    Variable Value

    Dev00-09 0010001011

    Dev10-19 1110001111

    Dev20-29 1110001111

    may be is better to create a table:

    devicestatus = {deviceID=id, valueID = value}

    also to check and add in table only deices with value > 0, dimmers and switches.

    Same time can exclude some devices from heating system.

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