add step variable for number fields
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
# %basetype the base data type ID (e.g. "UCH").
|
||||
# %comment the field comment (if any).
|
||||
# %unit the field unit (if any).
|
||||
# %min and %max the minimum/maximum possible value for number fields.
|
||||
# %min, %max, and %step the minimum/maximum possible value and step value for number fields.
|
||||
# %topic the field (or message) update topic built from the mqtttopic configuration option and/or the %topic variable
|
||||
# defined here.
|
||||
|
||||
@@ -239,7 +239,8 @@ type_part-by = %type_topic
|
||||
type_part-number = ,
|
||||
"command_topic":"%topic/set",
|
||||
"min":%min,
|
||||
"max":%max%unit_of_measurement%state_class%type_class_number
|
||||
"max":%max,
|
||||
"step":%step%unit_of_measurement%state_class%type_class_number
|
||||
|
||||
# HA integration: %type_part variable for sensor %type_topic
|
||||
type_part-sensor = %unit_of_measurement%state_class%type_class_sensor
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
# %basetype the base data type ID (e.g. "UCH").
|
||||
# %comment the field comment (if any).
|
||||
# %unit the field unit (if any).
|
||||
# %min and %max the minimum/maximum possible value for number fields.
|
||||
# %min, %max, and %step the minimum/maximum possible value and step value for number fields.
|
||||
# %topic the field (or message) update topic built from the mqtttopic configuration option and/or the %topic variable
|
||||
# defined here.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user