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

Question

Posted (edited)

Hi,

A while back somebody asked me to share my darkness monitor/autolights approach I use. (Sorry for the delay but I recently had to rebuild my system)

I took this decentralised approach as some of my house is well lit and some slightly darker at given times of the day.

 

It is nowhere near as powerful or flexible as @Sankotronic VSL (which is worth checking first) but if you are looking for something much more basic then this might give you some help.

 

The solution is essentially  3 parts

  1. A VD to track light level in the different spaces and trigger off a defined light level (it used a Process/Update button and Main Scene executing it every 5 mins)
  2. A global variable (1 or 0) for each space you want to monitor .. darkHall, darkLiving, darkOutside, darkKitchen .. etc
  3. A scene (triggered from the global variable ) to turn on the light/lamp when the required light level is reached.

 

PART 1 - Virtual Device - Darkness Monitor

Each space I want to monitor has a label and a block of code in the Update button code

Please login or register to see this code.

My full darkness monitor VD looks like this...

 

Please login or register to see this attachment.

 

My MainScene entry is as follows

It's the 5th entry in the list below.

Please login or register to see this code.

I'll share the VD at the end of the post

 

PART 2 - Global Variables

I decided to one per space and not a table as I wanted to trigger the scene from the global variable change.

 

Please login or register to see this attachment.

 

PART 3 - Auto Lights scenes

I use one scene per space/device you want to trigger

I use a couple of types so I'll share a few examples

I also send a message using the message hub when triggered on as well as using sleepstate.

I also use HomeTable for my id's so replace with device ID's but it makes it a bit more readable

Delete what you don't need ..

 

Hall

- simple one, switch on lamp ( I also track sleepstate for this one ) 

 

Please login or register to see this code.

 

Living Room

- check other lights and also check is lamp is on

Please login or register to see this code.

Kitchen

- same as Living room but this is also motion triggered

 

Please login or register to see this code.

 

Stairwell Light 

- Our stairwell doesn't have a window so I check three light levels and determine from that.

Please login or register to see this code.

 

I use the following icons as well depending on what is triggering the light/lamp

 

Please login or register to see this image.

/monthly_2017_05/58fa1b24dbf44_lightsdoor.png.92ee10273a9c8b23450d8fe593f71a3c.png.09e59e72915b9331c6e8a6a928496c0c.png" />   58fa1b25890a5_lightssunset.png.d03d6bb9c99662e79678de67fe98f68b.png.1cc855002acfcdb142ca24e060ee1da8.png   58fa1b253799c_lightssensor.png.0f976c9e3ca4e37e27b01bc837105cf1.png.feb1fcc7a9728361a8661743559c5cc0.png

 

VD code attached - 

Please login or register to see this attachment.

 

Enjoy 

_f

 

 

 

 

 

 

 

 

 

 

 

Edited by AutoFrank

4 answers to this question

Recommended Posts

  • 0
Posted

super but can you add those pic again please

  • 0
  • Inquirer
  • Posted (edited)
    On 5/19/2017 at 0:13 AM, confesor said:

    super but can you add those pic again please

     

    Hi @confesor, @RH_Dreambox

     

    First post fixed...

     

    _f

     

     

    Edited by AutoFrank
    • 0
    Posted

    Is this a picture of the VD for tracking light level???? It must be wrong picture.

    And please, can you add the code for this light level VD.

    • 0
  • Inquirer
  • Posted

    Will do @RH_Dreambox

    The post seems to have gotten all mixed up with files and icons disappearing

     

    I'll fix the first post in a short while 

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