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

Question
AutoFrank 372
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
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" />VD code attached -
Please login or register to see this attachment.
Enjoy
_f
Edited by AutoFrank4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.