Jump to content
C4 Forums | Control4

De-bugging your programming


Recommended Posts

How are you quickly searching through all your programming to find something? For instance, in my office bathroom, the keypad button 1 LED is going to it's LED on state (but the light isn't turning on). This is telling me that somewhere in all my programming I by accident included Bathroom Keypad Button 1 to be an action.

 

I have to assume that there could be a way to look at all the scripts that are made to help determine where a mistake was made faster. 

Link to comment
Share on other sites


Thanks. I decided to open up a bunch of of my device events and was able to find it. Luckily didn't take too long.

 

I am having trouble executing a piece of code. I am wondering what I am doing wrong here.  I am trying to make my Keypad button toggle my blinds opening and close.  

I have it set up so If blinds are selected for Favorite Position, then LED color will turn Off color, and if they are selected to Open position, then LED will turn to On Color

What I think & want to happen when I push "Blind Button" in the Family room right door is  (but it is not working...):

  • It checks to see if the Kitchen keypad Blind Button is using On or Off Color
  • If the kitchen keypad button is On, then execute the command to move shades to Favorite location.   
  • If not, it does the other command

 

What is actually happening... The Family Room Right Door Blinds button is toggling On/Off color whenever I hit it, but blinds aren't moving. The Kitchen LED light is staying at the correct status (On for Open, and Off color for Favorite position). 

 

 

image.png.e2ed366cae7716d3a94086bd4c8e91b4.png

 

image.png.28399e18fc214e187aaab4e2f7c1a7d0.png

 

image.png.e1fcc746aae0d1206cf5e055d2ec4d6c.png

Link to comment
Share on other sites

the best thing you can do is make lots of back ups and lots of notes and test constantly. Even if it means testing at each step to make sure you have the intended behavior as you add each step. then it easy to trouble shoot. a laptop with composer for this purpose makes it much easier.

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.