From ac29d4936be250cb24d9ba3d2f718ad492751b97 Mon Sep 17 00:00:00 2001 From: KlausMu Date: Thu, 14 Mar 2024 14:43:33 +0100 Subject: [PATCH] enable smarthome when wifi is enabled, not when mqtt keyboard is enabled --- .../src/devices/misc/device_smarthome/device_smarthome.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platformio/src/devices/misc/device_smarthome/device_smarthome.cpp b/Platformio/src/devices/misc/device_smarthome/device_smarthome.cpp index 8a7a2fa..2ff6a5a 100644 --- a/Platformio/src/devices/misc/device_smarthome/device_smarthome.cpp +++ b/Platformio/src/devices/misc/device_smarthome/device_smarthome.cpp @@ -7,7 +7,7 @@ uint16_t SMARTHOME_MQTT_BULB1_BRIGHTNESS_SET ; //"Smarthome_mqtt_bulb1_brightnes uint16_t SMARTHOME_MQTT_BULB2_BRIGHTNESS_SET ; //"Smarthome_mqtt_bulb2_brightness_set"; void register_device_smarthome() { - #if (ENABLE_KEYBOARD_MQTT == 1) + #if (ENABLE_WIFI_AND_MQTT == 1) register_command(&SMARTHOME_MQTT_BULB1_SET , makeCommandData(MQTT, {"bulb1_set" })); // payload must be set when calling commandHandler register_command(&SMARTHOME_MQTT_BULB2_SET , makeCommandData(MQTT, {"bulb2_set" })); // payload must be set when calling commandHandler register_command(&SMARTHOME_MQTT_BULB1_BRIGHTNESS_SET , makeCommandData(MQTT, {"bulb1_setbrightness" })); // payload must be set when calling commandHandler