enable smarthome when wifi is enabled, not when mqtt keyboard is enabled
This commit is contained in:
parent
51a6c7306c
commit
ac29d4936b
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
uint16_t SMARTHOME_MQTT_BULB2_BRIGHTNESS_SET ; //"Smarthome_mqtt_bulb2_brightness_set";
|
||||||
|
|
||||||
void register_device_smarthome() {
|
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_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_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
|
register_command(&SMARTHOME_MQTT_BULB1_BRIGHTNESS_SET , makeCommandData(MQTT, {"bulb1_setbrightness" })); // payload must be set when calling commandHandler
|
||||||
|
|
Loading…
Reference in a new issue