After you re-programmed the switch from the controller, did you tell Upstart to re-read the configuration from the switch? If not, that would explain why Upstart didn't get the name. The controller doesn't really care what the switch is named (I don't think), but if Upstart overwrote the received links table, that may cause you problems later if you try to control that switch with a scene switch.
Yeap, I told upstart to read from the switch and it got the right info maybe from three out of 22 switches. By the way, even after programing the switches, neither of the original codes posted work the way I want them to, the switches do report correctly when they are on or off. I am about to try cornutt suggestion.
After much trial and error I think I found a way to make it work.
[codebox]17. // Flag for back light
18. WHEN Patio Single Fan and Light ON
THEN INCREMENT Flag Track light status fan
19. WHEN Patio Single Fan and Light OFF
THEN DECREMENT Flag Track light status fan
20. // Automation Back Light When open Door at Night
21. WHEN Formal Living Room Back Doors NOT READY
AND IF Flag Track light status fan OFF
AND IF DARK
THEN Patio Single Fan and Light ON FOR 3 MINUTES
22. // FINISH
[/codebox]
If anyone knows of a simpler easier neater way to doit please let me know.