Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: CC Control from iPhone Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: January 19 2009 at 17:36 | IP Logged Quote GadgetGuy

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!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum