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
rafal.m 7
Polska wersja:
Please login or register to see this link.
My idea for automation lights in the house. Example of usage...
The enter-room with dimmer. Every move event turn on the lights for 3 minutes and every open door event turn on the lights for 5 minutes. In the last counting minute the lights will dimm down to zero - softly.
Every move or opening the door event will restart counter to 3 or 5 minutes. Manualy turning on the lights will set counter to half hour and then any other event will not be able to set counter for lower time - manual control is a priority.
Summary:
- Automatic switching off lights after counting time.
- Extension of light time based on events (eg move, doors, etc.).
- Without interfering with the manual control.
- Each light has its own timer.
- Dimming light for a defined time.
- Easy access to functions from the scene.
and...
- Everything is based on one single virtual device,
- For presentation timer and counting using slider - one for each device.
- Switching the light in the scenes you can make in the traditional way, or...
- Or simply by setting the slider value (setting the timer) - nothing more!
- You can adjust the slider (timer) in many scenes together.
The whole is fully automated and is simple to implement!
And here's the recipe in a few steps:
1. Define a new virtual device with the following code as Main loop. Change only login and password for your HC2:
Please login or register to see this link.
2. Define the sliders for each device in your home that you want to control by timer. To do this, add a slider in the virtual device with content as below:
Please login or register to see this code.
Fields:
action must be always autoOff;
deviceId id of controlled device;
defaultTime (optionaly) - default timer when the switch is controling manualy;
defaultValue (optionaly) - default maximum dimmer value;
dimmTime (optionaly) - time of dimming on the switching off event;
NEW! wakeTime (optionaly) - wake up period in seconds if devcie is dead.
3. (Optionaly) For presentation on the home screen you can define two elements in that virtual device. One more slider witch id globalSlider and one label id globalLabel with title eg. Turning off:.
That's all.
Just a way to use this functionality in scenes:
Instead of selecting the turn on action, just select the action changes the slider to the virtual device to any value (in seconds). The light will turn on automaticly.
Good luck;)
And one more thing...
Please login or register to see this link.
to have new futures!Update 1.3:
- added possibilites to set timer (slider) from scenes to any value (even lower than actual) by minused value (eg. -600).
Update 1.2:
- fixed slider values preview,
- added new parameter "wakeTime"
- few others.
Update 1.05:
- possibility to turn off by slider,
- possibility to controll time in any "direction" by main slider
- icons - with animation
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" />- bug fixes
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Please login or register to see this attachment.
Link to comment
Share on other sites
Top Posters For This Question
29
10
5
4
Popular Days
Oct 21
7
Oct 11
6
Oct 19
5
Jun 20
5
Top Posters For This Question
rafal.m 29 posts
remcoploeg 10 posts
emariu 5 posts
hugohekk 4 posts
Popular Days
Oct 21 2013
7 posts
Oct 11 2013
6 posts
Oct 19 2013
5 posts
Jun 20 2014
5 posts
Popular Posts
rafal.m
Please login or register to see this link. Thanks Please login or register to see this link. and Please login or register to see this link. !
Posted Images
86 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.