Author Topic: time sensitive scenes....  (Read 2116 times)

Offline dohcdragon

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
time sensitive scenes....
« on: May 21, 2011, 10:30:05 pm »
Ok so i have set up my vera and been using it for months and very much enjoy it. i am new to this forum and this is my first post here. i am not great with forums.. i did search for this but i cant find it and it seams like something that everyone would want/ask about. so here i go. I have setup a scene that everytime anyone uses a code on the door to the hous it turns on the kitchen lights. that was easy and it works well. but i dont want it to active from dawn to dusk. how do i set that up? thanks in advanced

Offline oTi@

  • Community Beta
  • Master Member
  • ******
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: time sensitive scenes....
« Reply #1 on: May 21, 2011, 10:38:52 pm »
In the Luup tab of the scene put:
Code: [Select]
return (luup.is_night())
The commands will now only be executed when it's night.
Dezwaved at the moment...

Offline dohcdragon

  • Sr. Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
Re: time sensitive scenes....
« Reply #2 on: May 21, 2011, 10:46:32 pm »
ty i will try that. what would be for daylight?

Offline oTi@

  • Community Beta
  • Master Member
  • ******
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: time sensitive scenes....
« Reply #3 on: May 21, 2011, 10:56:00 pm »
ty i will try that. what would be for daylight?
Code: [Select]
return not (luup.is_night())
Dezwaved at the moment...

Offline bhavin66

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: time sensitive scenes....
« Reply #4 on: January 23, 2012, 03:02:39 pm »
ty i will try that. what would be for daylight?
Code: [Select]
return not (luup.is_night())

I saw this in the wiki

return luup.is_night() == false