GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: January 19 2009 at 17:36 | IP Logged
|
|
|
Finally after several weeks of pretty intensive coding (and a heck of a lot new learning about PH) I have achieved a Control Center for my iPhone that achieves what I have wished for for 20 years, ever since I learned about my first X10 device.
What I wanted to share was a dimming approach I haven't seen mentioned in the forums.
Given the difficulty if implementing a slider control that worked effectively over the web, I started experimenting with my lighting levels and discovered that for all practical purposes 5-8 level increments are very adequate. It is virtually impossible to tell the difference between 50 and 60%, so I figured why bother?
This instead of a slider I designed a 15% increment control system that feels like it does a perfectly adequate job and works well over the web.
This layout gives me great control from my iPhone or desktop computer.
I save the last button press in a GLOBAL called "LAST-BUTTON". When a dim (Action) button is pressed I call a macro that sets the Insteon device identified in LAST-BUTTON to the level indicated on the CC panel button. Very simple (only about three lines of code), but highly effective.
In use it means I press a light button displayed on in the CC window. It doesn't really matter whether these buttons toggle the light on or off as when I next press a DIM button the last pressed light is them set to that dim level.
I've set up Triggers to note level changes and display any dimmed light levels on top of the button. Otherwise the button is uncluttered for full ON/OFF.
It seems as if this is a simple but effective way to control dim levels over the web.
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|