add switch payload values

This commit is contained in:
John
2022-01-30 15:29:07 +01:00
parent b3f474e3b8
commit 206686a72f
+6 -2
View File
@@ -221,9 +221,13 @@ type_part-number = ,
# HA integration: %type_part variable for sensor %type_topic
type_part-sensor = %unit_of_measurement%state_class%type_class_sensor
# 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
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).
# HA integration: set to the mapped %type_part from above