From 1c8e8b7be778b25a8b6d50435c9c95495bc17b1f Mon Sep 17 00:00:00 2001 From: Theo Arends Date: Fri, 16 Mar 2018 11:13:10 +0100 Subject: [PATCH] v5.12.0e - Clear up HAss effect list syntax (#1930) Clear up HAss effect list syntax - still unusable due to mqtt message way too long (#1930) --- sonoff/xdrv_07_home_assistant.ino | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/sonoff/xdrv_07_home_assistant.ino b/sonoff/xdrv_07_home_assistant.ino index 84a218bd9..eaec8686e 100644 --- a/sonoff/xdrv_07_home_assistant.ino +++ b/sonoff/xdrv_07_home_assistant.ino @@ -53,24 +53,7 @@ const char HASS_DISCOVER_LIGHT_SCHEME[] PROGMEM = "%s,\"effect_command_topic\":\"%s\"," // cmnd/led2/Scheme "\"effect_state_topic\":\"%s\"," // stat/led2/RESULT "\"effect_value_template\":\"{{value_json." D_CMND_SCHEME "}}\"," - "\"effect_list\":\"[0, 1, 2, 3, 4]\""; // Needs to be a Python string list providing Scheme parameter values (Unable to get this functional) -*/ -/* -#1690 - investigate -effect_list: -- 0 -- 1 -- 2 -- 3 -- 4 -- 5 -- 6 -- 7 -- 8 -- 9 -- 10 -- 11 -- 12 + "\"effect_list\":[\"0\",\"1\",\"2\",\"3\",\"4\"]"; // string list with reference to scheme parameter. Currently only supports numbers 0 to 11 as it make the mqtt string too long */ void HAssDiscovery() {