Smart Home Scenarios

    By scenario, we mean a certain sequence of actions that can be performed by a smart home when a wall switch button is pressed, an application in a smartphone, a voice command, or by time. For example, before going to bed, by pressing the button by the bed, you can turn off the lighting of the entire apartment and turn on the night lights in the passageways. Or, when leaving for work, it's enough to say "Alice, I'm gone" to turn off the lights, close the curtains, turn off the underfloor heating or air conditioners.

    Smart home scenarios can be roughly divided into 2 types, each of which has its own characteristics. Let's look at them in more detail.

    Scripts that run from a phone or voice work over the Internet. This means that when you press a button on your phone, a command is sent to the Yandex server or the Smart Electronics company, and commands are already being received from the Internet to turn on or off the devices. This is a fairly convenient control method, but it must be borne in mind that it can work with a delay when the Internet quality is poor and will not work at all if the Internet is turned off in the apartment or house. Fortunately, in modern realities this happens extremely rarely.

    In some cases, it is more convenient to trigger scenarios by pressing the wall switch buttons. For example, at night, when everyone is asleep, or in those cases when it's just faster. Most often, scenario switches are placed:

-at the front door to turn off all apartment lighting and close the curtains before leaving,

-in the bedroom by the bed to turn off all apartment lighting,

-in the living room, if the design project provides for more than 6 groups of light. 

In the latter case, instead of a piano, only 4 buttons can be output from the switches.:

"Guests" - turns on the bright lighting of the room;

"Evening" - includes a combination of the main light and decorative lights for everyday use;

"Cinema" - turns off all the lights in the room, turns on the sconces at 15% brightness, closes the curtains;

"Turn everything off" - turns off all the lights in the room.


YouTube: https://youtu.be/ILgWye_dZps
VK: https://vk.com/video-211035547_456239294

    The scripts executed by the buttons are no longer stored on the Internet, but in the AlphaSE Hub2 hub and the SE 8i module. In this regard, they work out almost instantly and the availability of the Internet does not affect them in any way. However, it must be borne in mind that such scenarios can only perform actions with Smart Electronics company modules, it will not be possible to turn on the Redmond kettle with Alice or launch a robot vacuum cleaner.

   Next, we will describe the connection of the scenario switches and their configuration.

Connection

    For example, we will use a typical package of modules for a two-room apartment. It consists of AlphaSE Hub2, SE6i5o Light. Let's add the SE 8i scenario module.

    Remark: In order for the scenario module to work correctly, the address of the SE 8i module must be 120. Read more about how to address modules in the article.


   The scenario keys are connected to the SE8i module as follows


Setting

Only the SE 8i module with the number 120 can run scripts. One input-configurable script supports up to 12 actions.



    Setting up the "Sleep" scenario

    Within a few seconds after clicking the "Save" button, the settings will be transferred to Hub2 and the scripts will start working.