Five things to do with your new Home Center


So, you've just set up your Fibaro system and your devices are all added and have sensible names and locations. You can control your home from your phone! Anywhere! It is all very exciting, but … what next?

In this tutorial we will look at 5 simple things you may want to do with your new system. In most cases we will use graphics blocks to create our scenes – which means you can use the Home Center 2 or the Home Center Lite. However, in some cases there are times when you will need the advanced capabilities of Lua, which are only available on the Home Center 2.


WHAT CAN I DO?


Using graphics blocks, the Home Center 2 and Home Center Lite can be told to automatically perform actions when other events happen. Lights can be instructed to turn on with movement or at a particular time, heating can be set to a temperature based on the state of your windows or doors. The possibilities are really down to how creative you can be with the system – and with automation, as many other creative arts, there are several ways to achieve the same outcome.

After trying the examples in this article, experiment with your system and you will come up with your own unique scenes.

Below you will find one possible way to achieve the following automatic actions:

  • Turning on a light when the door opens
  • Turning on a fan when a light turns on (and off again 5 minutes later)
  • Sending a push notification when there is a flood
  • Sending an email when the power on a wall plug drops below a set level
  • Changing the set point of a thermostat when a window is opened

TURNING ON A LIGHT WHEN THE DOOR OPENS


You come home from shopping. Your arms are full of bags. You just manage to turn the key in the lock and you fumble in the darkness trying to find the light switch. In frustration, you put the shopping down on what you assume is your empty floor, only to squash the cat, who, unlike you can see in the (almost) dark.

Wouldn't it be nice if your lights could turn on when you opened the door?

HOW TO DO IT


What you need

1 x Fibaro Door/Window Sensor
1 x Fibaro Dimmer Module

The scene

Create the following graphic blocks scene:

  1. Click Scenes and then Add scene.
  2. Give your new scene a name and choose the room it relates to.
  3. Click the blue Save button on the right of the page.
  4. Click the Advanced tab.
  5. Click the + and locate the Door/Window Sensor under Devices.
  6. Change the green box to Breached (as opposed to Opened which is for blinds).
  7. Change the second yellow word from And to Then.
  8. Click the last + and locate the Dimmer module under Devices.
  9. Click Save.

Some notes and further ideas

This scene will turn the light on when the door opens, but it will not turn it off – use your light switch or mobile device for this. It will also turn the light on regardless of the need for light – even when it is daytime. Further logic could be added in the top section to only turn the light on if the door is open AND there is light – you would need a lux level detector for this (like the Fibaro Motion Sensor for example).

TURNING ON A FAN WHEN A LIGHT TURNS ON (AND OFF AGAIN 5 MINUTES LATER)


Here will link the bathroom fan with the Dimmer which is controlling the light. When the light turns on, the fan turns on and vice versa. Using Lua we can have more advanced control and time the fan to turn off after five minutes – more on that later.

HOW TO DO IT


What you need

1 x Fibaro Dimmer Module
1 x Fibaro Dual or Single Relay Module

The scene

Create the following graphic blocks scene to turn the fan on:

Create the following graphic blocks scene to turn the fan off:

  1. Click Scenes and then Add scene.
  2. Give your new scene a name and choose the room it relates to.
  3. Click the blue Save button on the right of the page.
  4. Click the Advanced tab.
  5. Click the + and locate the dimmer module under Devices.
  6. Change the green box to ON (for the on scene) or OFF (for the off scene).
  7. Change the second yellow word from And to Then.
  8. Click the last + and locate the fan relay module under Devices.
  9. Change the green box to Turn On (for the on scene) or Turn Off (for the off scene).
  10. Click Save.

Some notes and further ideas

As you can see, with graphics blocks you need to have two scenes to control each fan. Using Lua on the Home Center 2, you can combine these into one scene and delay the fan turning off by a set amount of time.

SENDING A PUSH NOTIFICATION WHEN THERE IS A FLOOD


Used in areas at risk of leaks and floods, the Fibaro Flood sensor can detect water and alert you to the problem before it becomes serious. If this is in an area that is difficult to access or rarely visited, receiving a push notification on your smart device in the event of a flood could prevent major damage to your property.

HOW TO DO IT


What you need

1 x Fibaro Motion Sensor
A smart device that receives push notifications.

The notification

Create a notification to be pushed to the mobile device:

  1. Click Panels in the top menu.
  2. Click Notifications Panel in the left hand menu.
  3. Click Add New at the top of the left hand menu.
  4. Enter a name for the notification (We will use Flood in this example).
  5. Enter a message and copy it to all three boxes (SMS, email and Push).
  6. Click Save.

The scene

Create the following graphic blocks scene:

  1. Click Scenes and then Add scene.
  2. Give your new scene a name and choose the room it relates to.
  3. Click the blue Save button on the right of the page.
  4. Click the Advanced tab.
  5. Click the + and locate the flood sensor under Devices.
  6. Change the green box to Breached.
  7. Change the second yellow word from And to Then.
  8. Click the last + and Hover over Notifications.
  9. Hover over Flood (or whatever you called the notification you just made).
  10. Hover over Push.
  11. Select the mobile device you wish to send the push notification to.
  12. Click Save.

Some notes and further ideas

This scene will push to one mobile device. You can add more notifications by:

  1. Clicking the + on the end.
  2. Choosing And under Commands in the menu.
  3. Clicking the + on the end.
  4. Selecting your second notification in the same way as above.

You can repeat these steps for as many notifications as you like.

SENDING AN EMAIL WHEN THE POWER ON A WALL PLUG DROPS BELOW A SET LEVEL


When your TV, fridge, washing machine or other device turns on or changes operation, the amount of power being consumed by it will change too. The Fibaro Wall Plug can detect these changes and use them to trigger actions.

  • If you have a Wall Plug attached to your washing machine, when the washing is finished you could be sent an email.
  • A Wall Plug attached to a TV could detect when the TV is turned on and dim your lights.
  • By affixing a Wall Plug to your fridge, you can be notified if it ever breaks down

HOW TO DO IT


What you need

1 x Fibaro Wall Plug

The notification

Create a notification to be emailed when the scene runs:

  1. Click Panels in the top menu.
  2. Click Notifications Panel in the left hand menu.
  3. Click Add New at the top of the left hand menu.
  4. Enter a name for the notification (We will use TV Turned Off in this example).
  5. Enter a message and copy it to all three boxes (SMS, email and Push).
  6. Click Save.

The scene

Create the following graphic blocks scene:

  1. Click Scenes and then Add scene.
  2. Give your new scene a name and choose the room it relates to.
  3. Click the blue Save button on the right of the page.
  4. Click the Advanced tab.
  5. Click the + and locate the Wall Plug under Devices.
  6. Change the first yellow box to W < (for power less than) or W > (for power more than).
  7. Type the power you want to compare to in the dark green box.
  8. Change the second yellow word from And to Then.
  9. Click the last + and Hover over Notifications.
  10. Hover over TV Turned Off (or whatever you called the notification you just made).
  11. Hover over e-mail.
  12. Select the user you wish to send the email to.
  13. Click Save.

Some notes and further ideas

This scene will email to one user. You can add more by:

  1. Clicking the + on the end.
  2. Choosing And under Commands in the menu.
  3. Clicking the + on the end.
  4. Selecting your second notification in the same way as above.

You can repeat these steps for as many notifications as you like.

More complex scenes (for example, reacting one way when the device turns on and another way when it turns off) can be written using Lua, which is only available on the Home Center 2.

CHANGING THE SET POINT OF A THERMOSTAT WHEN A WINDOW IS OPENED


When the weather gets cold and your heating is trying its best to keep your home warm, leaving a window open could cause your bills to go up as all your energy is spent heating the air outside your house.

Fitting a Fibaro Door/Window Sensor to the windows in your home and turning your thermostat's set points down automatically if the windows are opened may be the answer to your problem.

HOW TO DO IT


What you need

1 x Fibaro door/window sensor for each window in the room, and
1 x Z-Wave radiator valve for each wet radiator in the room, or
1 x Fibaro single relay configured as a linked device for each electric heating device

The scene

Create the following graphic blocks scene:

  1. Click Scenes and then Add scene.
  2. Give your new scene a name and choose the room it relates to.
  3. Click the blue Save button on the right of the page.
  4. Click the Advanced tab.
  5. Click the + and locate the door/window sensor under Devices.
  6. Change the green box to Breached.
  7. Change the second yellow word from And to Then.
  8. Click the last + and locate the thermostat under Devices.
  9. Enter the new set point (in this case 5) into the dark green box.
  10. Click Save.

Some notes and further ideas

You can add more windows in this room by:

  1. Clicking the + at the top.
  2. Choosing Or under Commands in the menu.
  3. Clicking on the + at the top.
  4. Selecting the next window you want to monitor from Devices.
  5. Changing the green box to Breached.

You can add more actions than just turning down your heating by:

  1. Clicking the + on the end.
  2. Choosing And under Commands in the menu.
  3. Clicking on the + on the end.
  4. Selecting the next action you want to perform.

This scene will turn your heating down to 5 degrees to prevent frost. When the window closes again the heating needs to turn back up. You could write a scene in graphics blocks to do this but the level it sets the heating to would be a fixed level.

A better way to achieve this task would be to use Lua on a Home Center 2 and have the following scene:

In this scene there are two windows (98 and 417); change these to match your system. Place any windows into the table on line 8 and make sure you add them in the triggers section (lines 3 and 4 here) as well.

WHERE NOW?


For some more ideas of the things you can do with Fibaro, have a look at our tutorials section.

For more information on Lua, see our Lua support page.