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!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted (edited)

Main scene FTBE v 1.3.4

 

Hello everyone!

 

NEW version is OUT!

 

More about scene and download you can find here:

 

WHAT'S NEW:

 

  • Main scene FTBE 1.3.4 - changed function for time of day calculation and added use of SleepState global to set time of day to morning when Awake  regardless of current time
  • Main scene FTBE 1.3.0 - cleaned some bugs, added some more checks to prevent scene from stop running due to errors. Optimized and compacted code, removed unnecessary comments. DemoMode only stops changing timers while user code and scheduled events will continue to execute. Darkness can now be changed by measured lux level or global variable that is set to lux value measured by light measuring devices placed outside. Scene is now running on setTimeout function instead on sleep for better timing and also aligns to 0 seconds or exact minute.
  • Sunrise & Sunset VD v1.4.0 - Modified main loop code to better handle global variables. Variables are now automatically repaired and are not reset to default settings after HC2 reboot. Added variable SunriseIcon to store VD icon ID and now when main icon for VD is set also all button icons are set automatically.
  • Home Status VD v1.1 - Added variable HomeStatIcon to store VD icon ID and now when main icon for VD is set also all button icons are set automatically. Added label that shows most important values on VD when closed.
  • Home Timers VD v1.1 - Added variable HomeTimersIcon to store VD icon ID and now when main icon for VD is set also all button icons are set automatically. Added label that shows most important values on VD when closed.

 

 

Please login or register to see this attachment.

 

 

NOTE - This version is compatible with previous versions so need to do any changes in your current code of other scenes and VD's.

 

REQUEST - If you like my work and found it useful please give me support by rating and writing short review. Thank you! :-)

 

PS

Dear friends from Slovakia you can find this scene and VD translated to your language here: 

Please login or register to see this link.

 

 

Edited by Sankotronic
Updated to new version
  • Like 17
  • Thanks 6

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Hi @RubberDuck,

     

    When you are logged in remotely then in debug window is shown time from that computer and not from HC. When I was logging in from another time zone to my HC then in debug window wash shown local time from that time zone. 

    • 0
    Posted

    Ah okay, I was a little bit confused :)


    But this sounds good :)


    Thanks

    • 0
    Posted

    MTBE crashed on me overnight, as per this debug screen shot.  Any ideas what causes this?

     

     

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted
    On 8/6/2017 at 11:17 PM, clowg said:

    MTBE crashed on me overnight, as per this debug screen shot.  Any ideas what causes this?

     

    Hi @clowg,

     

    I believe we already discussed that in some previous posts and other thread too. In short this is error caused in HC script and not by the scene. I can't do much about that. But you can install Watchdog scene made by Lazer from French forum.

    • 0
    Posted

    Gerat scene. Any chance to add turn on/off device function? Thank you. 

    • 0
    Posted

    @Sankotronic what are the only settings to set if i want to use this scene for my garden lights and use "Darkness" variable as trigger?

    • 0
  • Inquirer
  • Posted
    3 hours ago, tampiss said:

    Gerat scene. Any chance to add turn on/off device function? Thank you. 

     

    Hi @tampiss,

     

    Yes, that will be available in new version.

     

    1 hour ago, jompa68 said:

    @Sankotronic what are the only settings to set if i want to use this scene for my garden lights and use "Darkness" variable as trigger?

     

    Hi @jompa68,

     

    if you use scene to turn on lights in garden then you can setup like this:

    Please login or register to see this code.

    Now you need to add this code under function extraUserCodeFirst():

    Please login or register to see this code.

    sunsettime and sunrisetime are times calculated using margin settings from Sunrise & Sunset VD, but you can use any other setup.

    Same settings are for scheduled VD setup if you use button on VD to turn on garden lights.

     

    Current version does not support control of devices, but in next version also that settings will be available.

     

    • 0
    Posted

    @Sankotronic Thanks for this! I finally decided to throw my own scripts overboard and to start using this one :).

    Although I am only half way implementing this (had to run to this thing called 'work'  ;) ), just wanted to share some thoughts on your instruction post on how to install.

     

    You start by telling us to follow it 'to the letter'. So I did and then started with step 1 of the installation steps. I imported the VD. All good. After a few seconds the var's seem to have bene created and get populated and are displayed in the VD as expected. Then, the next step is to copy/paste the lua and to run it. With the instruction to see if it echoes as it does in your picture. This is where I got an error, which, looking at the code, made sense, as it needed some predefined vars.

     

    Maybe it would be worth considering to add an additional step to the install instructions, namely to create the global predefined vars named a,b and c, with optional values x, y and z..

    Maybe with some additional comment that, for instance 'Monday till Sunday' are the easiest/default values, but that you can also use anything else and that you will have the option to alter when pasting in the code into the new scene.

     

    Or.. Maybe the instructions ARE actually there somewhere and I just miss it.. In that case, ignore my post :D

     

    I can imagine that for non experiences users this all can be quite confusing. Logical question: 'Do you need to make any vars yourself or not?'  (as the VD does create several non-predefined global vars). Then the start playing around, maybe altering values for those vars as well and saving them, which screws up the format and then they are completely lost.. :)

     

    Anyway, jsut some feedback, hope it is appreciated and of any help :D

    • 0
  • Inquirer
  • Posted

    Hi @MaTi,

     

    Thank you very much for your feedback. Main reason why I'm working on new universal HA system for HC2 is to make it easy to setup for everyone. Actually primarily for newbies since gurus have their own solutions :-)  I already have some solutions that can make this happen and I'm still working on some more things that will make it even more simpler. Of course, HA is so much individual thing, and therefore some complexity has to stay same as possibility to configure things to user expectations.

     

    • 0
    Posted

    Cool. Looking forward to your creations as always! :)

    • 0
    Posted

    I made a stupid mistake... I hit the save button on the variable panel (for an other variable) and now this scene does not work anymore. What are the best steps to take? And anybody knowns when Fibaro finally fix this bug??

    • 0
  • Inquirer
  • Posted
    23 hours ago, remcoploeg said:

    I made a stupid mistake... I hit the save button on the variable panel (for an other variable) and now this scene does not work anymore. What are the best steps to take? And anybody knowns when Fibaro finally fix this bug??

     

    Hi @remcoploeg,

     

    Just open Sunrise & Sunset VD for editing and then press save button to restart Main loop and reset values.

     

    • 0
    Posted
    31 minutes ago, Sankotronic said:

     

    Hi @remcoploeg,

     

    Just open Sunrise & Sunset VD for editing and then press save button to restart Main loop and reset values.

     

    Thanks!

    • 0
    Posted

    Hello 

    Please login or register to see this link.

    ,

     

    You're writing to release a new version soon. Can you already estimate when it will be.

    I would like to use the main scene for time based eventscontrol, but also like to wait for the new version.

    Thank you for your great work.

     

     

    • 0
    Posted

    Has anyone created a Virtual Device for changing some of the other global variables - such as LightState, CinemaState, MealState etc?  I would like to give the family an easy way to set these via a VD on iOS phone or tablet.

     

    Cheers,
    Geoff.

    • 0
    Posted
    6 hours ago, clowg said:

    Has anyone created a Virtual Device for changing some of the other global variables - such as LightState, CinemaState, MealState etc?  I would like to give the family an easy way to set these via a VD on iOS phone or tablet.

     

    Cheers,
    Geoff.

    I have, here you go:

     

    • 0
    Posted
    On ‎2017‎-‎08‎-‎15 at 11:44 AM, Sankotronic said:

    Hi @MaTi,

     

    Thank you very much for your feedback. Main reason why I'm working on new universal HA system for HC2 is to make it easy to setup for everyone. Actually primarily for newbies since gurus have their own solutions :-)  I already have some solutions that can make this happen and I'm still working on some more things that will make it even more simpler. Of course, HA is so much individual thing, and therefore some complexity has to stay same as possibility to configure things to user expectations.

     

    Hi Sankotronic!

     

    Thank you for continuing your excellent work! I've been away from the forum awhile because my HC2 suddenly crashed (hardware failure). I will send it in this weekend. Hope I get it back working, ready for a new firmware. Looking forward to see a release of your work whenever it is ready!

     

    Wish you and everyone else a nice evening,

    Cheers,

     

    • 0
    Posted

    This is great stuff! THank you @Sankotronic for the amazing work!

     

    I have a question: The sunrise VD currently controls the TimeOfDay variable.

    However this is linked to the sunrise and sunset time, and I want it to be a fixed time (Day at 06:00 and Night at 23:00).

    Is this possible? Can I disable the VDs capabilities to set the TimeOfDay variable?

     

    Thank you all for your help!

     

    KR,
    Kristof

    • 0
  • Inquirer
  • Posted
    25 minutes ago, kristofre said:

    This is great stuff! THank you @Sankotronic for the amazing work!

     

    I have a question: The sunrise VD currently controls the TimeOfDay variable.

    However this is linked to the sunrise and sunset time, and I want it to be a fixed time (Day at 06:00 and Night at 23:00).

    Is this possible? Can I disable the VDs capabilities to set the TimeOfDay variable?

     

    Thank you all for your help!

     

    KR,
    Kristof

     

    Hi @kristofre,

     

    It is not available in current version, but I'm preparing to publish new version of Main scene and Sunrise & Sunset VD that will have that option to make all times fixed.

    Until I publish this new version you can use workaround by changing some code in Main scene. Find this code that is almost at the end of the scene:

    Please login or register to see this code.

    and change it to look like this:

    Please login or register to see this code.

    After above change save scene and it will keep fixed times for sunrise and sunset. Of course in that case you will not be able to change those times with Sunrise & Sunset VD.

    • 0
    Posted
    28 minutes ago, Sankotronic said:

     

    Hi @kristofre,

     

    It is not available in current version, but I'm preparing to publish new version of Main scene and Sunrise & Sunset VD that will have that option to make all times fixed.

    Until I publish this new version you can use workaround by changing some code in Main scene. Find this code that is almost at the end of the scene:

    Please login or register to see this code.

    and change it to look like this:

    Please login or register to see this code.

    After above change save scene and it will keep fixed times for sunrise and sunset. Of course in that case you will not be able to change those times with Sunrise & Sunset VD.

     

    Awesome! Thank you for the extremely quick reply! Works like a charm :-).

    Looking forward to the next version!

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    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...