Sensor rail tile
$object.sensorrailtile:description$
Properties
id
Unique object identifier. Each object in Traintastic has a globally unique id that can be used in scripts (see world.get_object).
name
$object.sensorrailtile.name:description$
state
$object.sensorrailtile.state:description$
Events
on_changed
$object.sensorrailtile.on_changed:description$
Handler signature
function (value, object, name, user_data)
Arguments
-
value- $object.object.on_changed.parameter.value:description$ -
object- $object.object.on_changed.parameter.object:description$ -
name- $object.object.on_changed.parameter.name:description$ -
user_data- optional user-provided value (see Events).
on_state_changed
$object.sensorrailtile.on_state_changed:description$
Deprecated
This event will be removed in Traintastic v0.5, use the generic on_changed event.
Handler signature
function (state, sensor, user_data)
Arguments
-
state- $object.sensorrailtile.on_state_changed.parameter.state:description$ -
sensor- $object.sensorrailtile.on_state_changed.parameter.sensor:description$ -
user_data- optional user-provided value (see Events).