Table of contents
Description
FIBARO System will detect too high or too low temperature in your house and will adjust your shades or blades to save energy and decrease your bills.
Requirements
- FIBARO Home Center 2 connected to remote access,
- Hunter Douglas blinds or shades,
- Configured PowerView plugin.
Step-by-step guide
- Log in to your FIBARO Home Center.
- Click on Scenes.
- Choose Add scene.
- Find Add scene in LUA and click on Add.
- As described, the LUA scene below will set your shades in the right position whenever there is too cold or too warm in your house.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
--[[ %% properties 145 value %% weather %% events %% globals --]] local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getValue(145, "value")) < 20 ) or startSource["type"] == "other" ) then fibaro:call(406, "playScene") end if ( ( tonumber(fibaro:getValue(145, "value")) > 24 ) or startSource["type"] == "other" ) then fibaro:call(405, "playScene") end |
Comments what does the code do:
- fibaro:getValue(145, “value”) – reads the temperature from the FIBARO Motion Sensor
- tonumber(fibaro:getValue(145, “value”) – simplifies the temperature reading to just a number
- > 20 – compares it with our set threshold
- fibaro:call(406, “playScene”) – executes the scene from the PowerView plugin
- ( tonumber(fibaro:getValue(145, “value”)) > 24 ) – repeats the sequence for the upper limit
September 5, 2018 3529 Use Cases
Total 3 Votes:
0
3