atanisoft / ESP32CommandStation

An ESP32 based DCC Command Station with integrated OpenLCB (LCC) --- NOTE: this project is not under active development.
https://atanisoft.github.io/ESP32CommandStation/
GNU General Public License v3.0
90 stars 34 forks source link

CDI: Missing ability to control OPS track power. All other options should be added as well... #88

Open TrainzLuvr opened 3 years ago

TrainzLuvr commented 3 years ago

There's no button in the JMRI/CDI to create an event to turn the OPS track power on/off.

Kinda bummer if you want to control something like that from a panel and not a WebUI.

For that matter, all of the rest of the options should be added (Turnouts, Sensors...)

atanisoft commented 3 years ago

Jmri doesn't expose the option today but you can control on/off state of OPS track by send events to the bus. Similarly estop can be sent.

This will need to be enhanced on the jmri side. For panels, you could have them fire the events.

atanisoft commented 3 years ago

well-known events that control the areas you are after:

The current iteration of sensors will not be added to the CDI as it doesn't make sense due to limited number of IO pins available. S88 Sensors may be added to the CDI at some point in the future but that can be tracked via it's own issue.

Turnouts can be controlled via DCC address or via LCC events:

Other well-known events that may be generated by the CS: