Anybody have a manual on the language used for programming Custom Sensors in the ShortCut program? Expecially interested in items related to specifying wiring colors and connections for novel devices - the "Wiring Diagram" feature is quite useful.
I know this post is quite old, but have you tried using the "Create Custom Sensor" functionality of ShortCut?
Check out ShortCut Help -> Search -> Custom Sensor
You enable the functionality through the Tools menu. Then you can right click on any existing sensor and create a similar custom sensor.
Once you've created your custom sensor, you can edit the .SCU file directly using a plain text editor.
For example, I created a customer sensor based off of "Generic Measurements" -> "Single-Ended Voltage". To edit the wire colors, I opened the .SCU file in notepad and changed the following lines:
ReqConnection('SEAnalog','SEV_Chan','Signal')
ReqPartialConnection('AG','SE_Shield','Shield',0.25)
ReqPartialConnection('AG','SEGround','Ground',0.25);
To:
ReqConnection('SEAnalog','SEV_Chan','Red')
ReqPartialConnection('AG','SE_Shield','Black',0.25)
ReqPartialConnection('AG','SEGround','Green',0.25);
We also have a blog article on this subject now available at https://www.campbellsci.com/blog/create-custom-sensors-short-cut