Posted November 4, 20168 yr Hello all, I'm new to Insteon and UniversalDevices, however not new to principals behind object oriented programming (loops, while, for etc.). Configuration ISY9941i (located in basement connected to serial PLM) FW 4.5.1 UI 4.4.6 2 range extenders (2443) 6 & 8 button Keypad 1 Dimmer switch 8 button wireless keypad 2 Lamplinc's in the bedroom (2nd floor) I can trigger the lamplinc's via the wireless keypad, I can also trigger via the ISY.The lamplincs take a second or two to respond. I'm trying to create a program where a lamp slowly wakes me in the morning(0-100 in 2-3 minutes) ... Below is my program Bedroom-Wakeup - [iD 0006][Parent 0001] If On Mon, Tue, Wed, Thu, Fri From 6:00:00AM To 7:50:00AM (same day) Then In Scene 'Bedroom Lamp' Set 'Bedroom Lamp' 2.5 Min (Ramp Rate) Else - No Actions - (To add one, press 'Action') Last run: Today at 7:50:01amLast Finish Today Today at 7:50:01amNext Sched Tomorrow 6:00:00 AM Problem: The lamp does not turn on. I also tried using WAIT and BRIGHT in my code without calling a scene ( code runs directly on the device) Below is an example of a program that works with no issues Bed time light - [iD 0005][Parent 0001] If From Sunset + 20 minutes To Sunrise - 30 minutes (same day) Then Set 'Kids Dimmer' 20% Else - No Actions - (To add one, press 'Action') Any idea what i'm doing wrong? TLDR: Green code works, Red code does not, whats wrong?
November 4, 20168 yr What seems like not in your understanding. The time frames are a little tricky and very different from inline programming conditions. From timexxx runs the Then Section To timeyyy runs the Else section also Your first bedroom is setting parameters inside your scene setup and not sending anything out. Scenes are like car radio presets with a station and a volume. You turn then On to end and it's like pushing the button on the radio. They are set up ahead of time and called by an Insteon code to "implement" them. Scenes take On and Off and the rest is just setting the preset parameters. Scenes live in the devices EPROM memories, not in ISY. Edited November 4, 20168 yr by larryllix
November 4, 20168 yr Author What do you have set for the brightness level? Current state: off On level: 100 Ahhhhh... As i'm writing this I just noticed this program is setting my ramp rate to 2.5 minute. My new code.. Bedroom-Wakeup - [iD 0006][Parent 0001] If On Mon, Tue, Wed, Thu, Fri From 6:00:00AM To 7:50:00AM (same day) Then Set 'Bedroom Lamp' 10% Wait 20 seconds Set 'Bedroom Lamp' 25% Wait 20 seconds Set 'Bedroom Lamp' 40% Wait 20 seconds Set 'Bedroom Lamp' 60% Wait 20 seconds Set 'Bedroom Lamp' 80% Wait 20 seconds Set 'Bedroom Lamp' 100% Else - No Actions - (To add one, press 'Action') .
November 4, 20168 yr Author There's no statement that turns the scene on. I caught that after... I have modified the code with "WAITS" which works well as I wont have to modify the ramp rate. Thanks to all who posted.... looks like i need to read more wiki's
November 4, 20168 yr Just write you rprogram to turn the scene on. Then access the scene definition page in admin console, set your levels and ramp rates. This is done in the scene definition (top line), not in the devices inside the scene.(under the top line) You're done and working like you wanted. Welcome to the forum!!! Edited November 4, 20168 yr by larryllix
November 4, 20168 yr Just write you rprogram to turn the scene on. Then access the scene definition page in admin console, set your levels and ramp rates. This is done in the scene definition (top line), not in the devices inside the scene.(under the top line) You're done and working like you wanted. Welcome to the forum!!! I am working on something like this for my kids and have a question. So if I adjust the scene ramp rate on the definition page it will not effect my local on ramp rates when I manually turn it on? At this point I am using the wait approach.
November 4, 20168 yr I am working on something like this for my kids and have a question. So if I adjust the scene ramp rate on the definition page it will not effect my local on ramp rates when I manually turn it on? At this point I am using the wait approach. I get confused on the local settings but IIRC... When you adjust ramp rates in the scene page it affects the scene presets inside the devices only. When you adjust the device pages, or the device pages under the scene page, (next lexical level) then you are adjusting the local / manual parameters inside the devices, not the scene parameters.
November 9, 20168 yr OK so I added 2 switches to a scene and set the scene ramp rate for both switches to 9 min and on level at 100% Then I have a program that runs every weekday morning at 6:30 to turn the scene on. Problem is it does turn the scene on but at 100% What should I being doing to fade up from 0%-100% over the 9min ramp rate? Should I select "fade up" instead of "on" for the program?
November 9, 20168 yr OK so I added 2 switches to a scene and set the scene ramp rate for both switches to 9 min and on level at 100% Then I have a program that runs every weekday morning at 6:30 to turn the scene on. Problem is it does turn the scene on but at 100% What should I being doing to fade up from 0%-100% over the 9min ramp rate? Should I select "fade up" instead of "on" for the program?No. Scenes are turned On or Off, only The ramp rates are set in the scene page devices, not in the device pages under the scene definition at the next lexical level. Those set the local control ramp rates not the scene parameters. Ohhhh... 9 minutes does not work on many newer devices. try 8 minutes Edited November 9, 20168 yr by larryllix
November 9, 20168 yr No. Scenes are turned On or Off, only The ramp rates are set in the scene page devices, not in the device pages under the scene definition at the next lexical level. Those set the local control ramp rates not the scene parameters. Ohhhh... 9 minutes does not work on many newer devices. try 8 minutes Yup I made sure to set the scene parameters- the one that shows all the switches on the page for that scene.Not the individual device page. I will give 8min a shot.Thanks
November 9, 20168 yr The 9 minute option, as larryflix indicated, addresses only older devices which did have a 9 minute option. In all current devices 9 minutes equates to no delay (well, actually the minimum dimmer delay).
November 9, 20168 yr I tried 8 minutes to try and simulate a sunrise and it never woke me up. I switched to 0.2 seconds and now it always wakes me up. B.R.I.A.D.A. Best regards, Gary Funk
November 9, 20168 yr I tried 8 minutes to try and simulate a sunrise and it never woke me up. I switched to 0.2 seconds and now it always wakes me up. B.R.I.A.D.A. Best regards, Gary Funk You're missing brightness
November 9, 20168 yr You're missing brightness A sunrise does not wake me up. Only a sudden change in light or any abnormal-for-conditions noise. B.R.I.A.D.A. Best regards, Gary Funk
November 9, 20168 yr Sudden light certainly beats sudden noise when you consider heart beats.Most noise is sudden. Especially talking. B.R.I.A.D.A. Best regards, Gary Funk
November 9, 20168 yr A sunrise does not wake me up. Only a sudden change in light or any abnormal-for-conditions noise. Most noise is sudden. Especially talking. The sudden light or noise you referred to always wakes me. Talking is not always an awakening
November 9, 20168 yr I, previously used a 500W halogen torchierre lamp to help wake me up. I used an X10 dimmer and an HC2000 program to slowly ramp it from 0 to 100% over about 30 minutes. If I didn't detect motion by that point in time I would flash the light. I always hard a hard time getting up in the mornings.
Archived
This topic is now archived and is closed to further replies.