From: Jim D. <ji...@du...> - 2011-02-11 00:02:53
|
On 02/09/2011 10:06 AM, Gregg Liming wrote: > > Here's what I need from you (and, off-list is fine if you wish): > > 1) Set your PLM debug on (via the web interface) and get a snapshot of > your log file when you set your button (not the surrogate) on and off. > 02/10/11 06:58:40 PM Running: PLM messaging debug on 02/10/11 06:59:37 PM Running: kpl button A off 02/10/11 06:59:37 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_kpl_button_A; command=off; extra=00. If this is a light fixture, check bulb 02/10/11 06:59:42 PM Running: kpl button A on 02/10/11 06:59:42 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_kpl_button_A; command=on; extra=FF. If this is a light fixture, check bulb 02/10/11 06:59:49 PM Running: kpl button B on 02/10/11 06:59:49 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_kpl_button_B; command=on; extra=FF. If this is a light fixture, check bulb 02/10/11 06:59:53 PM Running: kpl button C on 02/10/11 06:59:53 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_kpl_button_C; command=on; extra=FF. If this is a light fixture, check bulb 02/10/11 06:59:53 PM Running: kpl button D on 02/10/11 06:59:53 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_kpl_button_D; command=on; extra=FF. If this is a light fixture, check bulb 02/10/11 06:59:59 PM Running: courtyard button A on 02/10/11 06:59:59 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_courtyard_button_A; command=on; extra=FF. If this is a light fixture, check bulb 02/10/11 07:00:00 PM Running: courtyard button B on 02/10/11 07:00:01 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_courtyard_button_B; command=on; extra=FF. If this is a light fixture, check bulb 02/10/11 07:00:02 PM Running: courtyard button C on 02/10/11 07:00:02 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_courtyard_button_C; command=on; extra=FF. If this is a light fixture, check bulb 02/10/11 07:00:05 PM Running: courtyard button D on 02/10/11 07:00:05 PM [Insteon_PLM] WARN: received NACK for obj=$surrogate_courtyard_button_D; command=on; extra=FF. If this is a light fixture, check bulb > 2) Your applicable *.mht file (or portions thereof). INSTEON_KEYPADLINC, 0E.76.34:01, living_room_ceiling INSTEON_KEYPADLINC, 0E.76.34:03, kpl_button_A, Insteon_Buttons INSTEON_KEYPADLINC, 0E.76.34:04, kpl_button_B, Insteon_Buttons INSTEON_KEYPADLINC, 0E.76.34:05, kpl_button_C, Insteon_Buttons INSTEON_KEYPADLINC, 0E.76.34:06, kpl_button_D, Insteon_Buttons INSTEON_ICONTROLLER, a0, surrogate_kpl_button_A, hidden INSTEON_ICONTROLLER, a1, surrogate_kpl_button_B, hidden INSTEON_ICONTROLLER, a2, surrogate_kpl_button_C, hidden INSTEON_ICONTROLLER, a3, surrogate_kpl_button_D, hidden INSTEON_KEYPADLINC, 15.63.FC:01, courtyard_stairs INSTEON_KEYPADLINC, 15.63.FC:03, courtyard_button_A, Insteon_Buttons INSTEON_KEYPADLINC, 15.63.FC:04, courtyard_button_B, Insteon_Buttons INSTEON_KEYPADLINC, 15.63.FC:05, courtyard_button_C, Insteon_Buttons INSTEON_KEYPADLINC, 15.63.FC:06, courtyard_button_D, Insteon_Buttons INSTEON_ICONTROLLER, a4, surrogate_courtyard_button_A, hidden INSTEON_ICONTROLLER, a5, surrogate_courtyard_button_B, hidden INSTEON_ICONTROLLER, a6, surrogate_courtyard_button_C, hidden INSTEON_ICONTROLLER, a7, surrogate_courtyard_button_D, hidden And I use the surrogates here: # repeat this line for all targets synced to kpls $light_down_landing->tie_event('sync_kpl_lights($light_down_landing, $surrogate_kpl_button_A)'); # noloop $light_living_room_wall->tie_event('sync_kpl_lights($light_living_room_wall, $surrogate_kpl_button_B)'); # noloop $light_living_room_window->tie_event('sync_kpl_lights($light_living_room_window, $surrogate_kpl_button_B)'); # noloop $light_dining_room->tie_event('sync_kpl_lights($light_dining_room, $surrogate_kpl_button_C)'); # noloop $light_front_walk->tie_event('sync_kpl_lights($light_front_walk, $surrogate_kpl_button_D)'); # noloop $light_courtyard_flood->tie_event('sync_kpl_lights($light_courtyard_flood, $surrogate_courtyard_button_A)'); # noloop $light_courtyard_post->tie_event('sync_kpl_lights($light_courtyard_post, $surrogate_courtyard_button_B)'); # noloop $light_landscape_courtyard->tie_event('sync_kpl_lights($light_landscape_courtyard, $surrogate_courtyard_button_C)'); # noloop # this will get called every time a switch is toggled locally, or every # time you run get_status or on receipt of remote activations sub sync_kpl_lights { my ($ref_light, $kpl_scene) = @_; if ($ref_light->state_changed) { $kpl_scene->set($ref_light->state); } } Thanks, Jim |