mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Set moodlight payload to uppercase
This commit is contained in:
parent
f4339203b7
commit
8ece088ce0
@ -945,7 +945,7 @@ void dispatch_moodlight(const char* topic, const char* payload)
|
|||||||
// buffer, sizeof(buffer),
|
// buffer, sizeof(buffer),
|
||||||
// PSTR("{\"state\":\"%s\",\"color\":\"#%02x%02x%02x\",\"r\":%u,\"g\":%u,\"b\":%u}"),
|
// PSTR("{\"state\":\"%s\",\"color\":\"#%02x%02x%02x\",\"r\":%u,\"g\":%u,\"b\":%u}"),
|
||||||
buffer, sizeof(buffer), PSTR("{\"state\":\"%s\",\"color\":{\"r\":%u,\"g\":%u,\"b\":%u}}"),
|
buffer, sizeof(buffer), PSTR("{\"state\":\"%s\",\"color\":{\"r\":%u,\"g\":%u,\"b\":%u}}"),
|
||||||
moodlight.power ? "on" : "off", moodlight.r, moodlight.g, moodlight.b);
|
moodlight.power ? "ON" : "OFF", moodlight.r, moodlight.g, moodlight.b);
|
||||||
dispatch_state_subtopic(out_topic, buffer);
|
dispatch_state_subtopic(out_topic, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1000,9 +1000,9 @@ void dispatch_reboot(bool saveConfig)
|
|||||||
|
|
||||||
void dispatch_current_state()
|
void dispatch_current_state()
|
||||||
{
|
{
|
||||||
dispatch_output_current_page();
|
|
||||||
dispatch_output_statusupdate(NULL, NULL);
|
dispatch_output_statusupdate(NULL, NULL);
|
||||||
dispatch_output_idle_state(hasp_sleep_state);
|
dispatch_output_idle_state(hasp_sleep_state);
|
||||||
|
dispatch_output_current_page();
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************* Command Wrapper Functions *********************************/
|
/******************************************* Command Wrapper Functions *********************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user