add switch payload values
This commit is contained in:
@@ -221,9 +221,13 @@ type_part-number = ,
|
|||||||
# HA integration: %type_part variable for sensor %type_topic
|
# HA integration: %type_part variable for sensor %type_topic
|
||||||
type_part-sensor = %unit_of_measurement%state_class%type_class_sensor
|
type_part-sensor = %unit_of_measurement%state_class%type_class_sensor
|
||||||
# HA integration: %type_part variable for switch %type_topic
|
# HA integration: %type_part variable for switch %type_topic
|
||||||
type_part-switch = %state_class
|
type_part-switch = ,
|
||||||
|
"payload_on":"on",
|
||||||
|
"payload_off":"off"%state_class
|
||||||
# HA integration: %type_part variable for binary_sensor %type_topic
|
# HA integration: %type_part variable for binary_sensor %type_topic
|
||||||
type_part-binary_sensor = %state_class
|
type_part-binary_sensor = ,
|
||||||
|
"payload_on":"on",
|
||||||
|
"payload_off":"off"%state_class
|
||||||
|
|
||||||
# the field specific part (evaluated after the message specific part).
|
# the field specific part (evaluated after the message specific part).
|
||||||
# HA integration: set to the mapped %type_part from above
|
# HA integration: set to the mapped %type_part from above
|
||||||
|
|||||||
Reference in New Issue
Block a user