mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 08:28:46 +00:00
Done testing HomeAssistant, refactoring HueMulator, fixed MQTT dim
control.
This commit is contained in:
@@ -73,7 +73,7 @@ public class HomeAssistant {
|
||||
}
|
||||
if(aCommand.getState().equalsIgnoreCase("on")) {
|
||||
aUrl = aUrl + "/turn_on";
|
||||
if(aCommand.getBri() != null && aCommand.getBri() > 0)
|
||||
if(aCommand.getBri() != null)
|
||||
aBody = aBody + ",\"state\":\"on\",\"attributes\":{\"brightness\":" + aCommand.getBri() + "}}";
|
||||
else
|
||||
aBody = aBody + "}";
|
||||
|
||||
Reference in New Issue
Block a user