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


Recommended Posts

Posted (edited)

Hi,

 

Is there anybody who can help me with my idee.

 

I bought a bearded dragon for my son, whe live in the Netherlands, but i was thinking the sunset and sunrise in Australia is way different then it is in Holland.

So is there a way to create a Lua scene that simulates the amount of sun on a day like it is in Australia, but in the day period of the Netherlands? (it wont be fun when the bearded dragon has light when whe are in bed)

 

I have the terrarium switched on and of with a Fibaro Wall Plug 230V.  

 

It woud be great for the dragon and for my son if somebody can get this to work.

 

Btw im Lua noob so dont expect me to create  much.... ;) 

 

Greetings TSN

 

 

Edited by TSN1
Posted

Please login or register to see this attachment.

 

Please login or register to see this code.

 

 

proofs

Please login or register to see this image.

/monthly_2019_10/image.png.8115c7ba6efe55c1cf6146bb40cfc151.png" />

 

  • Like 1
  • Thanks 1
  • Topic Author
  • Posted

    @10der

     

    Thx very much.

     

    Wauw nice, looks good. but i get: 

    [DEBUG] 12:03:35: 2019-10-04 12:03:35.630012 [ fatal] Unknown exception: /opt/fibaro/scenes/489.lua:6: attempt to call method 'getSelfid' (a nil value)

    When i put this in a scene.

    what am i doing wrong?

     

    Posted

    @TSN1 You can remove line 

     

    Please login or register to see this code.

    if you run it in sceene.

     

    it's quick modified my standalone VD :)

    image.png.c3f76081a051b0271ce5215523be930e.png

     

    • Thanks 1
  • Topic Author
  • Posted
    2 uur geleden zei 10der:

    @ TSN1 U kunt de regel verwijderen 

     

    Please login or register to see this code.

    als je het in sceene uitvoert.

     

    het heeft mijn standalone VD snel aangepast :)

    Please login or register to see this link.

     

    Thx scene works now.

    that picture looks good :)   how did u get that VD out of that scene?

    and how do i make the Fibaro wall plug switch on and off at the correct time?

     

    Thanks for ur time and effort u put into this.

     

    Greetings TSN

     

    Greetings

    Posted (edited)
    Quote

     

    that picture looks good :)   how did u get that VD out of that scene?

    and how do i make the Fibaro wall plug switch on and off at the correct time?

     

    too much questions :)

     

    create gloval vars

     

    SunriseExt
    SunsetExt

    SunriseTwilightExt
    SunsetTwilightExt
     

    now this vars will keep Australia sun times

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    image.png.939e6baa54488c5145e5f7e41961e886.png

    so. now you can use post by @jgab

     

     

     

    and use this globals as time for triggering ON / OFF your lamp

    it's easy

    Edited by 10der
    • Thanks 1
  • Topic Author
  • Posted (edited)

    @10der

     

    I think i got it, i used the global var to switch the terrarium on and off. (If i made the correct Lua code for it. :| ) 

    I hope the bearded dragon will like the sunrise/set simulation..

    That he gets his right winter rest etc.

     

    I will see tomorrow if it switches on and off and at the right time...... :|  :) 


    Thanks for ur great support.

    Edited by TSN1
    • Like 1

    Join the conversation

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

    Guest
    Reply to this topic...

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