read_rail_signal

class ReadRailSignalMixin(
red_output_signal: Any = NOTHING,
yellow_output_signal: Any = NOTHING,
green_output_signal: Any = NOTHING,
*,
extra_keys: dict[str, Any] | None = None,
)

Allows the Entity to set red, yellow, and green circuit output signals.

green_output_signal : SignalID | None

Serialized

This attribute is imported/exported from blueprint strings.

The green output signal. Sent with a unit value when the rail signal’s state is green.

red_output_signal : SignalID | None

Serialized

This attribute is imported/exported from blueprint strings.

The red output signal. Sent with a unit value when the rail signal’s state is red.

yellow_output_signal : SignalID | None

Serialized

This attribute is imported/exported from blueprint strings.

The yellow output signal. Sent with a unit value when the rail signal’s state is yellow.