mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[daikin] Fix switching specialmode to NORMAL (#13206)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
parent
ac12e5bfed
commit
bf58f98774
@ -141,17 +141,24 @@ public class DaikinWebTargets {
|
||||
Map<String, String> queryParams = new HashMap<>();
|
||||
if (specialMode == SpecialMode.NORMAL) {
|
||||
queryParams.put("set_spmode", "0");
|
||||
queryParams.put("spmode_kind", "1");
|
||||
} else {
|
||||
queryParams.put("set_spmode", "1");
|
||||
queryParams.put("spmode_kind", Integer.toString(specialMode.getValue()));
|
||||
}
|
||||
String response = invoke(setSpecialModeUri, queryParams);
|
||||
if (!response.contains("ret=OK")) {
|
||||
logger.warn("Error setting special mode. Response: '{}'", response);
|
||||
}
|
||||
}
|
||||
|
||||
public void setStreamerMode(boolean state) throws DaikinCommunicationException {
|
||||
Map<String, String> queryParams = new HashMap<>();
|
||||
queryParams.put("en_streamer", state ? "1" : "0");
|
||||
String response = invoke(setSpecialModeUri, queryParams);
|
||||
if (!response.contains("ret=OK")) {
|
||||
logger.warn("Error setting streamer mode. Response: '{}'", response);
|
||||
}
|
||||
}
|
||||
|
||||
// Daikin Airbase API
|
||||
|
Loading…
Reference in New Issue
Block a user