Creating block scenes

  1. Open the Configuration Interface.
  2. Go to > Scenes.
  3. Click Add scene.
  4. Choose type of the scene: Block scene.
  5. Enter the name of your scene.
  6. Choose the way of running the scene, max. running instances, category and scene icon.
  7. Save.
  8. Create your scene using blocks.
  9. Save.

Available blocks

  • ANY / ALL – allow to combine conditions. After adding, click on the name of this condition to change it between:
    • All of these are true – start the scene if every condition in this frame is true.
    • Any of these are true – start the scene if any condition in this frame is true.
  • Delay
    • Set time – all actions in this frame will be delayed by time set (click its name to change delay time).
  • Weather
    • Temperature – checks temperature, choose comparator and value to compare.
    • Humidity – checks humidity, choose comparator and value to compare.
    • Wind speed – checks winds speed, choose comparator and value to compare.
    • Weather – check weather condition, choose is or is not condition and type of the weather.
  • Time
    • Time interval (trigger) – scene runs every given period of time, set starting point and time interval.
    • Once (trigger) – scene runs at given time only once.
    • Days of week (condition) – the scene starts only on given days of the week when triggers are met.
    • Days of month (condition) – the scene starts only on given days of the month when triggers are met.
    • Time range (condition) – the scene starts only in a given period of time when triggers are met.
    • Date range (condition) – the scene starts only in a given range of dates (between two specified days of the year) when triggers are met.
    • Sunrise & Sunset – the scene starts depending on sunset/sunrise time for your location (Before sunrise, At sunrise, After sunrise, Before sunset, At sunset, After sunset).
    • Exact time – the scene starts at exact time of the day.
  • Device
    • Device: Single – action or condition –  you can choose one of your devices to trigger on a specific state or perform an action.
    • Device: Group – action – you can choose one or more of your devices to perform an action.
  • User
    • GPS Location – condition – scenes runs when user enters/leaves selected location.
  • Scene
    • Scene – action – choose a scene which will run when conditions are met.
  • Message
    • Simple message – action – notification/e-mail – choose a type of the message, choose who will be receiving this notifications and enter text of the message.
  • Panel – you can use panels both as action and as condition
    • Alarm – action or condition – trigger scene for alarm state or arm/disarm an alarm.
    • Profiles – action or condition – trigger scene when profile is activated or activate one of the profiles.
    • Variables – action or condition – trigger scene for global variable value or change value of variable.
    • Events – action or condition –  trigger scene when custom event occurs or emit custom event,
    • Climate – action or condition – trigger scene when zone enters specific mode or active mode in the zone.

Triggers/conditions

Left column of the block scene stores triggers and conditions, which when met will run the scene and perform actions in the right column. Some blocks are always triggers, some conditions and some can be both. Triggers will activate the scene to check rest of the conditions and triggers. Conditions will not activate the scene, but act as an additional requirement before performing actions.

By default all All blocks in left column must be met to start the scene, but you can click the top left corner to change between All of these are true and Any of these are true. To achieve more complicated logic, use ANY / ALL frames, which can be nested for any kind of trigger/condition relation.

Converting to Lua

You can convert Block Scene to Lua Scene to speed up Lua developement and tweak it further.

  1. Open the Configuration Interface.
  2. Go to > Scenes.
  3. Click next to a scene you want to convert.
  4. The scene will be copied and converted to Lua.

Examples scenes

Turn on light when motion detected

Turn on light when motion detected and is dark

Turn on light when motion detected in one of two places and is dark

Turn on light when motion detected, turn off light after 5 minutes

Activate “Away” profile when The Button is clicked 2 times

Send notification to admin when motion detected during the night

Close awning when wind speed is higher than 20mph

Emit custom event when temperature drops below 18 and switch is turned off

Turn on switch when custom event occurs

Arm zone at 22:00 on weekdays and at 23:00 at weekend