Well, the script was supposed to do nothing. I wanted to simulate pushing the turnout icon once on the Panel Pro Main Panel. Something happens that reports the physical state and updates the Main Panel if they are out of synch. It takes a second touch on the icon to change the turnout position. I just have not figured out what that first step is yet nor how to access that programmatically.
?
The main panel display is on iPads accessing the Panel Pro Web Server. That works well.
?
However, I wanted to supplement that with physical buttons located at the edge that can also change turnouts without going to the Main Panel. Below is an example of one such button that changes a crossover.
?
It would be very nice if activation of the local button would update the Panel Pro Main Panel.
?
The major reason I stopped building elaborate panels is to reduce physical wiring and make things more software driven. However, individual button controls like this are very nice to have especially in support of local operations. Adding another circuit to incorporate a sensor is another added piece of wiring infrastructure to install and maintain.

he turnout position.??