| Author | 
         | 
         
      
        
         
         jeffw_00 Super User 
          
 
  Joined: June 30 2007
 Online Status: Offline Posts: 935
          | 
        
         
          
           | Posted: February 01 2023 at 09:45 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi - for ph_insteonwithret the return codes are doc'd as:
 
 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 found, 
 -2 is returned if the command fails due to timeout, -3 is returned if 
 the controller is not connected, -4 is returned if the command fails 
 due to NAK.. 
 
 1) can someone better explain the -4?  
 2) what does a return code of -12 mean?
 
 Thanks!
 /j
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         dhoward Admin Group 
          
  
  Joined: June 29 2001 Location: United States
 Online Status: Offline Posts: 4447
          | 
        
         
          
           | Posted: February 01 2023 at 23:02 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Jeff,
 
 Looking at the sourcecode, it does not appear that the documentation is correct. That return values of -100 and -1 are correct as documented however. 
 
 -11 is returned if a timeout occurs.
 
 -12 is returned if the Insteon controller is not connected.
 
 -13 is returned on a NAK. A NAK means that command was sent to the device and the device responded but it did not like something about the command. It could 
 be that the command is not supported, reserved, or could be an unknown command. If the command was an all link cleanup, a NAK could also mean that the device 
 is not in the all-link group. Basically, a NAK means that the device received the command but it was not a command that it understood.
 
 Hope this helps,
 
 Dave.
 
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         jeffw_00 Super User 
          
 
  Joined: June 30 2007
 Online Status: Offline Posts: 935
          | 
        
         
          
           | Posted: February 02 2023 at 07:21 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Thanks Dave - but then what does -4 mean?
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         dhoward Admin Group 
          
  
  Joined: June 29 2001 Location: United States
 Online Status: Offline Posts: 4447
          | 
        
         
          
           | Posted: February 02 2023 at 10:49 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Jeff,
 
 -4 should not be returned. The correct return for a NAK will be -13 (docs need to be updated).
 
 If you're actually getting a -4 returned, let me know as I will need to try and trace how that is even possible.
 
 Dave.
 
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         jeffw_00 Super User 
          
 
  Joined: June 30 2007
 Online Status: Offline Posts: 935
          | 
        
         
          
           | Posted: February 02 2023 at 11:43 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi Dave - it's limited to one appliance module that I think might be 
 at 
 end-of-life, but it was indeed sending me many
 
 2/1/2023  13:18:35.429     28  &nbs p;  INSTEON RETRY 3: Device 
 CLOTHESWASHERI, Desired State 0, Trigger 0, Returned Status  
 -4         &nbs p;
 695     User  Message     16777215  &nb sp;  #ffffff     32768&nb sp;    
 #008000
 
 This is after I rolled back to 2.1.5e
  
 
 
  Edited by jeffw_00 - February 02 2023 at 11:44
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         dhoward Admin Group 
          
  
  Joined: June 29 2001 Location: United States
 Online Status: Offline Posts: 4447
          | 
        
         
          
           | Posted: February 02 2023 at 11:49 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Jeff,
 
 I was just thinking that this is probably after you rolled back to 2.1.5e. Totally wasnt thinking about that. I would have 
 to review that earlier codebase but I suspect then that -4 is matching what is in the documentation which is a NAK and would 
 match what I wrote about -13.
 
 I'll check the codebase for 2.1.5e tonight and verify if that is the case.
 
 Sorry about spacing out on that detail.
 
 Dave.
 
         | 
       
       
        | Back to Top | 
         
          
          
         | 
       
       
       
        |   | 
      
        
         
         jeffw_00 Super User 
          
 
  Joined: June 30 2007
 Online Status: Offline Posts: 935
          | 
        
         
          
           | Posted: February 02 2023 at 11:50 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
works 4 me
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |