change fan mode name from med to medium
This commit is contained in:
parent
5d3b8f8f43
commit
3ed34f9efd
|
@ -800,7 +800,7 @@ void publish_ac_state()
|
||||||
mqtt.publish(AC_FAN_TOPIC, "high");
|
mqtt.publish(AC_FAN_TOPIC, "high");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
mqtt.publish(AC_FAN_TOPIC, "med");
|
mqtt.publish(AC_FAN_TOPIC, "medium");
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
mqtt.publish(AC_FAN_TOPIC, "low");
|
mqtt.publish(AC_FAN_TOPIC, "low");
|
||||||
|
@ -843,7 +843,7 @@ void ac_state_callback(char *topic, uint8_t topic_length, char *payload, unsigne
|
||||||
{
|
{
|
||||||
ac_set_state(ac_mode, ac_temperature, 1);
|
ac_set_state(ac_mode, ac_temperature, 1);
|
||||||
}
|
}
|
||||||
else if (!strcmp(payload, "med"))
|
else if (!strcmp(payload, "medium"))
|
||||||
{
|
{
|
||||||
ac_set_state(ac_mode, ac_temperature, 2);
|
ac_set_state(ac_mode, ac_temperature, 2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue