spoonman56 Posted February 18, 2009 Share Posted February 18, 2009 Can someone pls tell me why this doesn't work?When the doorbell is pressed at night, the light does not go on?Thank you in advance. Link to comment Share on other sites More sharing options...
thecodeman Posted February 18, 2009 Share Posted February 18, 2009 Doesnt look like your variable is nested. IF_Nighttime should go under Execute_announcement just like Execute_scene is under the announcement. Try that. Link to comment Share on other sites More sharing options...
TheOracle Posted February 18, 2009 Share Posted February 18, 2009 Haven't tried the doorbell yet but I would execute on release instead of press as a test. I would also need to ask what isn't working in particular. Is it the announcement or the lighting scene? Link to comment Share on other sites More sharing options...
spoonman56 Posted February 18, 2009 Author Share Posted February 18, 2009 The doorbell rings fine (although with a 4 second delay)The lighting scene does not execute? Link to comment Share on other sites More sharing options...
thecodeman Posted February 18, 2009 Share Posted February 18, 2009 Haven't tried the doorbell yet but I would execute on release instead of press as a test. I would also need to ask what isn't working in particular. Is it the announcement or the lighting scene?Also worth mentioning. Link to comment Share on other sites More sharing options...
spoonman56 Posted February 18, 2009 Author Share Posted February 18, 2009 I will try the "on release" side when it's dark here later.It just seems strange that the annoucement works fine, but not the lighting scene. Link to comment Share on other sites More sharing options...
TheOracle Posted February 18, 2009 Share Posted February 18, 2009 I know this sounds odd but try putting a pause of 1 second between the announcement and the if test. Link to comment Share on other sites More sharing options...
thecodeman Posted February 18, 2009 Share Posted February 18, 2009 I will try the "on release" side when it's dark here later.It just seems strange that the annoucement works fine, but not the lighting scene.You're still not going to try nesting the IF are you Link to comment Share on other sites More sharing options...
lvs Posted February 18, 2009 Share Posted February 18, 2009 I will try the "on release" side when it's dark here later.It just seems strange that the annoucement works fine' date=' but not the lighting scene.[/quote']You're still not going to try nesting the IF are you how do you nest under an executable statement? i think you have a choice of above or below only. Link to comment Share on other sites More sharing options...
thecodeman Posted February 18, 2009 Share Posted February 18, 2009 I will try the "on release" side when it's dark here later.It just seems strange that the annoucement works fine' date=' but not the lighting scene.[/quote']You're still not going to try nesting the IF are you how do you nest under an executable statement? i think you have a choice of above or below only.Hmm you're right. I'm playing with it now in composer. Link to comment Share on other sites More sharing options...
thecodeman Posted February 18, 2009 Share Posted February 18, 2009 Have you tried it this way? Link to comment Share on other sites More sharing options...
spoonman56 Posted February 19, 2009 Author Share Posted February 19, 2009 Just tried this with no luck.... Link to comment Share on other sites More sharing options...
thecodeman Posted February 19, 2009 Share Posted February 19, 2009 Let's see your lighting scene. Link to comment Share on other sites More sharing options...
spoonman56 Posted February 19, 2009 Author Share Posted February 19, 2009 Here it is.... Link to comment Share on other sites More sharing options...
CFUG Posted February 19, 2009 Share Posted February 19, 2009 Did your light fall off the project LOL Link to comment Share on other sites More sharing options...
spoonman56 Posted February 19, 2009 Author Share Posted February 19, 2009 I use the same lighting scene on the 6 button and it works fine.This is driving me nuts.... Link to comment Share on other sites More sharing options...
henniae Posted February 19, 2009 Share Posted February 19, 2009 Check that you have your timezone and lat/long set correctly. If they are not set correctly the system will not know when it is nighttime. Link to comment Share on other sites More sharing options...
spoonman56 Posted February 19, 2009 Author Share Posted February 19, 2009 Where / how do I do this?I use the scheduler agents now to turn on / off outside lights at dusk / night and it works fine. Link to comment Share on other sites More sharing options...
henniae Posted February 19, 2009 Share Posted February 19, 2009 It is under system design. If your dusk and dawn programming is working then it is probable set correctly. What code version are you running? Link to comment Share on other sites More sharing options...
spoonman56 Posted February 19, 2009 Author Share Posted February 19, 2009 I guess I'll call my dealer, I only have HE.Thanx. Link to comment Share on other sites More sharing options...
CFUG Posted February 19, 2009 Share Posted February 19, 2009 ^You don't need a "dealer" for checking that. Granted I have no idea what I'm doing most of time but I did see this under Props for your project name. If you say the routine works elsewhere then this setting is probably OK. i just check the routine without things like this then add them in after a clean check-out. Link to comment Share on other sites More sharing options...
thecodeman Posted February 19, 2009 Share Posted February 19, 2009 maybe this will force me to hook up my doorbell Link to comment Share on other sites More sharing options...
slemay Posted February 19, 2009 Share Posted February 19, 2009 We've setup many doorbells...We program on the RELEASE not the PRESS - but I don't see that being the problem here.I'd suggest, first, exactly what henniae told you to do - verify that the NIGHT programming is correct. If your timezone, or long / lat are off - then you're system thinks it is daytime when you think it's nighttime (and who's to say who's got it right... LOL). Link to comment Share on other sites More sharing options...
jbs Posted February 19, 2009 Share Posted February 19, 2009 How about TEMPORARILY adding an identical IF clause beneath the current IF clause (not nested, parallel).If Daytime, execute scene Front hallway.So it would look like:Execute announcementIf Night time > Execute scene Front HallwayIf Day time > Execute scene Front HallwayThat way, you can eliminate any timezone issues and you'll be able to test it without waiting for sundown. If the scene works, then you know it's something about the timing. If it doesn't work, that means there's another problem. Link to comment Share on other sites More sharing options...
ILoveC4 Posted February 19, 2009 Share Posted February 19, 2009 Here is a dumb question, but have you refreshed the navigator after adding/changing the code? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.