|
@ -125,8 +125,10 @@ void _schCheck() { |
|
|
if (getSetting("schType", i, "") == "light") { |
|
|
if (getSetting("schType", i, "") == "light") { |
|
|
int sch_brightness = getSetting("schAction", i, -1).toInt(); |
|
|
int sch_brightness = getSetting("schAction", i, -1).toInt(); |
|
|
DEBUG_MSG_P(PSTR("[SCH] Switching light %d to %d\n"), sch_switch, sch_brightness); |
|
|
DEBUG_MSG_P(PSTR("[SCH] Switching light %d to %d\n"), sch_switch, sch_brightness); |
|
|
|
|
|
#if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
|
|
|
lightChannel(sch_switch, sch_brightness); |
|
|
lightChannel(sch_switch, sch_brightness); |
|
|
lightUpdate(true, true); |
|
|
lightUpdate(true, true); |
|
|
|
|
|
#endif
|
|
|
} else { |
|
|
} else { |
|
|
int sch_action = getSetting("schAction", i, 0).toInt(); |
|
|
int sch_action = getSetting("schAction", i, 0).toInt(); |
|
|
DEBUG_MSG_P(PSTR("[SCH] Switching switch %d to %d\n"), sch_switch, sch_action); |
|
|
DEBUG_MSG_P(PSTR("[SCH] Switching switch %d to %d\n"), sch_switch, sch_action); |
|
|