From: Marc M. <ma...@me...> - 2012-02-10 14:24:12
|
On Sun, Feb 05, 2012 at 07:53:27AM -0800, Ray Yeung wrote: > Hello, > > I have an ApplianceLinc controlling a floor lamp, which MH turns on and off when it gets dark. I also have a KPL v5.5 which can control this lamp. I understand from the wiki that I can create a scene which will update the button backlight on the KPL when MH turns on the lamp. However, I can't seem to get this to work. I can get the KPL button to control the lamp, MH knows the KPL button status, and the MH scene works. Just the button backlight never turns on. There are 2 ways to do this 1) surrogates, as explained in the insteon wiki. I've never really liked the concept, they don't really make sense to me :) 2) create scenes for all your kpl led buttons, an a tie command as explained in this thread: http://tech.groups.yahoo.com/group/misterhouse/message/40201 The short version, something like this: ---------------------------------------------------------------------------- $fmr_outside->tie_event('sync_kpl_lights($fmr_outside, $fmr_outside_kpls)'); # noloop $yard_lights->tie_event('sync_kpl_lights($yard_lights, $yard_lights_kpls)'); # noloop # this will get called every time a switch is toggled locally and output: # MYLOGKPL: sync_kpl_lights called for state_changed on $kitchen_kpl for $kitchen_kpls sub sync_kpl_lights { my ($ref_light, $kpl_scene) = @_; if ($ref_light->state_changed) { print_log "MYLOGKPL: sync_kpl_lights called for state_changed on ".$ref_light->get_object_name." to ".$ref_light->state." for ".$kpl_scene->get_object_name." set kpls in 1sec"; # delay is to avoid collisions $kpl_scene->set_with_timer('', 1, $ref_light->state); } } ---------------------------------------------------------------------------- Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ |