Next: , Up: Inputs, Outputs, and Bindings   [Contents]


6.8.1 input

Declare under <inputs>. Each entry becomes an STInput published by this service.

<inputs>
  <input name="ShellyHT:temperature"
         description="Room temperature from Shelly H&amp;T"
         unit="celsius" min="-10" max="50"
         step="0.01" val="0"/>
  <input name="ShellyHT:humidity"
         unit="percent" min="0" max="100"
         step="0.1" val="0" flags="no-history"/>
</inputs>
name

Required. Peer id seen by starter-core (typically Namespace:signal). Must be unique among inputs.

description

Optional human-readable text (default empty).

unit

Required. Quantity kind; parsed with st_unit_from_string (case-insensitive). See unit attribute.

min

Required. Lower bound of the numeric range.

max

Required. Upper bound of the numeric range.

step

Required. Quantization step used when writing the value.

val

Required. Initial value at service start.

flags

Optional. Comma-separated (or pipe-separated) tokens, or a numeric literal; parsed with st_io_flags_from_string. Omit or empty for no flags. See flags attribute.