Next: output, Up: Inputs, Outputs, and Bindings [Contents]
Declare under <inputs>. Each entry becomes an STInput
published by this service.
<inputs>
<input name="ShellyHT:temperature"
description="Room temperature from Shelly H&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>
nameRequired. Peer id seen by starter-core (typically
Namespace:signal). Must be unique among inputs.
descriptionOptional human-readable text (default empty).
unitRequired. Quantity kind; parsed with st_unit_from_string
(case-insensitive). See unit attribute.
minRequired. Lower bound of the numeric range.
maxRequired. Upper bound of the numeric range.
stepRequired. Quantization step used when writing the value.
valRequired. Initial value at service start.
flagsOptional. 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.