Skip to content

Commit

Permalink
enable smarthome when wifi is enabled, not when mqtt keyboard is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausMu committed Mar 14, 2024
1 parent 51a6c73 commit ac29d49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac29d49

Please sign in to comment.