Jump to content

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!



Smart Home Forum by FIBARO Team

  • 0

Simplified Alarm Clock (used with @Sankotronic Main scene)



This is a simplified Alarm Clock that was created to work in conjunction with @Sankotronic Main Scene 1.2.4

You need to have this installed for my VD and code below to work

Thanks to @Sankotronic for allowing me to leverage his scene


Step 1
Create 3 variables (top variable panel)

  • WakeUp_weekend
  • WakeUp_weekday
  • WakeUp_time

Step 2

Import the VD 'Simple Clock' below
Adjust the preset alarm times to suit your household patterns
I have it setup so the middle one of the normal one and the left and right are a little earlier and a little later
Step 3

Open @Sankotronic Main Scene v1.2.4 and adjust as follows


~ line 266

Please login or register to see this code.

Ensure the scene you want executed is added here. 
Make note of position relative to other scenes in the list. In my example it is the first entry
~ line 282 

Please login or register to see this code.

Ensure some reference to you scene is added here. 
Normally you would add the time for the scene to be executed but in this case just add a descriptor.


~ line 412

Please login or register to see this code.

Add the following line of code within this function. (This reads the global variable and assigns it to the scheduler variable)

Please login or register to see this code.

Adjust the table reference values [1][1] in the code to match the relative position of the scene within the list on line 266 (runSceneSchedHour)


The table reference is set out as [table][sub-table] so If it is the scene you want to execute is the first entry use [1][1], if its the second use [2][1] and so on, If you have multiple times for a give scene you may need to adjust the [subtable] reference to 1, 2, 3 etc.

in my example the scene is the first one so the reference [1][1] is correct


Step 4
Save the scene and close
That's it.



Please login or register to see this attachment.

Edited by AutoFrank
Link to comment
Share on other sites

1 answer 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.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...