-
Couldn't load subscription status.
- Fork 887
Closed
Labels
Description
By carrying out a new test, I found that it was the "mode" parameter that allowed to turn off and not the "power" parameter.
Ahhhh. That makes all the difference in pinpointing the issue.
You need to change this parameter to false:
IRremoteESP8266/examples/IRMQTTServer/IRMQTTServer.h
Lines 138 to 152 in 030b403
| // Use Home Assistant-style operation modes. | |
| // TL;DR: Power and Mode are linked together. One changes the other. | |
| // i.e. | |
| // - When power is set to "off", the mode is set to "off". | |
| // - When the mode changes from "off" to something else, power is set to "on". | |
| // See: https://www.home-assistant.io/components/climate.mqtt/#modes | |
| // *** WARNING *** | |
| // This setting will cause IRMQTTServer to forget what the previous operation | |
| // mode was. e.g. a power "on" -> "off" -> "on" will cause it to use the | |
| // default mode for your A/C, not the previous mode. | |
| // Typically this is "Auto" or "Cool" mode. | |
| // Change to false, if your home automation system doesn't like this, or if | |
| // you want IRMQTTServer to be the authoritative source for controling your | |
| // A/C. | |
| #define MQTT_CLIMATE_HA_MODE true |
i.e.
#define MQTT_CLIMATE_HA_MODE falseI'll look into fixing it (power doing what is expected via the web interface) in your scenario. That's sort of a bug. But now I know what is causing it at least. Phew!!
Originally posted by @crankyoldgit in #1729 (comment)