From 206686a72f90f043a3ed92b39255b53b4575c7d8 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 30 Jan 2022 15:29:07 +0100 Subject: [PATCH] add switch payload values --- contrib/etc/ebusd/mqtt-hassio.cfg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/etc/ebusd/mqtt-hassio.cfg b/contrib/etc/ebusd/mqtt-hassio.cfg index fb97c071..9dc8b4e8 100644 --- a/contrib/etc/ebusd/mqtt-hassio.cfg +++ b/contrib/etc/ebusd/mqtt-hassio.cfg @@ -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