Fixed immediate bugs for

Fixes #129 Hue pass-thru always set to purple
Fixes #406 Dimming with Home Assistant
Fixes #414 Domoticz error retrieving devices
This commit is contained in:
Admin
2017-01-30 15:40:58 -06:00
parent f8de640f5d
commit 24dd427fb4
9 changed files with 81 additions and 516 deletions

View File

@@ -54,7 +54,7 @@ public class HomeAssistant {
if(aCommand.getState().equalsIgnoreCase("on")) {
aUrl = aUrl + "/turn_on";
if(aCommand.getBri() != null)
aBody = aBody + ",\"state\":\"on\",\"attributes\":{\"brightness\":" + aCommand.getBri() + "}}";
aBody = aBody + ",\"brightness\":" + aCommand.getBri() + "}";
else
aBody = aBody + "}";
}