Author |
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 02 2008 at 21:34 | IP Logged
|
|
|
I use this function for ALL my insteon commands. I recently put in an icon dimmer module and observed something I don't understand. When the lamp that is plugged into the module is turned on, all is well. But when the lamp is manually turned off, this function (called with CMD2 = 0) returns a value of "254".
any idea why it would return "254"?
thanks
/j
(7/6 - doesn't anyone know? Tony? Dave? ??? )
Edited by jeffw_00 - July 06 2008 at 16:49
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 09 2008 at 17:49 | IP Logged
|
|
|
(bump)
no one knows??? 8-{
/j
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: July 09 2008 at 19:48 | IP Logged
|
|
|
For some of us denser people show me the formula your using and I’ll test it.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: July 09 2008 at 20:22 | IP Logged
|
|
|
Running an ion, 128, the response is 128. If I manually turn the lamp off and send the same command, the return value is -2. FYI, I'm running the alpha.
I thought 254 was 100%, but I only found conflicting info on that topic.
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: July 09 2008 at 20:34 | IP Logged
|
|
|
I run 255 as 100% and 128 as 50%. Am I missing something?
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 09 2008 at 21:32 | IP Logged
|
|
|
ph_insteonwithret("[LOCAL1]",if (ph_getvar_n(1,2)=1,ifaston,ifastoff),0)
Local1 is the module name
local2 is 1 for on, 0 for off.
See the description below, it befuddles me that it returns a different value when the lamp is turned off at the switch.
thanks
/j
Description
Send a standard length Insteon command and waits for the return value. The value returned will be the CMD2 value in the standard Insteon return string.
Syntax
ph_insteonwithret ( id, cmd1, cmd2 )
Argument Description
id String. The ID of the Insteon device to send commands to.
cmd1 Integer. The command 1 value.
cmd2 Integer. The command 2 value.
Return value
Integer. Returns the CMD2 value from the Insteon acknowledgement if successful (a positive value). Returns - 100 if the ID cannot be found. -1 is returned if the controller is not available, -2 is returned if the controller does not support Insteon.
Usage
Use this funciton to send Insteon commands directly to a single device and retrieve the answering response. This is useful for working with non-lighting devices such as the EZIO8.
Edited by jeffw_00 - July 09 2008 at 21:32
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: July 09 2008 at 22:29 | IP Logged
|
|
|
Thanks Jeff, I’ll work on it tomorrow. I use PH_GETINSTEONLEVELRT instead.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 09 2008 at 22:31 | IP Logged
|
|
|
ph_insteonwithret sends the command and returns the status.
It may be fine, I was just curious what the 254 meant in this regard
thanks
/j
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: July 10 2008 at 10:38 | IP Logged
|
|
|
Jeff, I tested my ICON with it manually off and ran an IFASTON using ph_insteonwithret and received a return of “0”. I also checked the raw log and verified it. I assume you are seeing this in your LOCAL9. I was also under the impression that FASTON and OFF do not wait for real time status from the device. The 254 also sounds like a group number or the ramp level. I’m sure all I have done is throw crackers into the chowder.
BTW, thanks for you comments on the Onkyo. Sounds great.
Edited by BeachBum - July 10 2008 at 10:59
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 27 2008 at 15:22 | IP Logged
|
|
|
Bump -
I never really got an explanation - does anyone know why this function returns "254" from an ICON lamp dimmer when sent a faston command and the lamp is off?
thanks
/j
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: July 27 2008 at 17:29 | IP Logged
|
|
|
Jeff,
Look at that device in Insteon Explorer and see if the Local Level is set to 254 instead of 255.
I have three devices - 2 switchlincs and one Icon dimmer - that show the Local Level set to 254. I think if you put 255 in the Desired Local Level field, you will get 255 as a return for your formula.
Why they are set to 254 from the factory, I don't know. Maybe something in the QC/testing process?
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 27 2008 at 18:55 | IP Logged
|
|
|
yes, it is. what's weird is that it provides it only when the lamp is -off-.
/j
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: July 28 2008 at 20:16 | IP Logged
|
|
|
I was wrong about the origin of the 254 return.
The 254 is the NAK Reason Code. NAK Reason Code 254 (OxFE) means there is no load.
INSTEON_Developers_Guide_20051014a.pdf
See pdf page 76, document page 68.
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: July 28 2008 at 20:38 | IP Logged
|
|
|
You made my day.. I was looking for that. Thks Brady
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: July 28 2008 at 21:10 | IP Logged
|
|
|
well, that explains it then.
RTFM 8-}
thanks!
/j
|
Back to Top |
|
|