mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-16 18:24:36 +00:00
updated to new BL api lib added debug and fixed device build for BL in
app.js
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>com.bwssystems.HABridge</groupId>
|
||||
<artifactId>ha-bridge</artifactId>
|
||||
<version>5.2.0RC24</version>
|
||||
<version>5.2.0RC25</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HA Bridge</name>
|
||||
@@ -129,7 +129,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.bwssytems</groupId>
|
||||
<artifactId>broadlink-java-api</artifactId>
|
||||
<version>7d1c637f09</version>
|
||||
<version>cbed334fa1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
|
||||
@@ -67,10 +67,10 @@ public class BroadlinkHome implements Home {
|
||||
|
||||
@Override
|
||||
public Object getItems(String type) {
|
||||
if(!validBroadlink || broadlinkMap == null)
|
||||
return null;
|
||||
BroadlinkEntry theResponse = null;
|
||||
List<BroadlinkEntry> deviceList = new ArrayList<BroadlinkEntry>();
|
||||
if(!validBroadlink || broadlinkMap == null)
|
||||
return deviceList;
|
||||
BroadlinkEntry theResponse = null;
|
||||
log.debug("consolidating devices for Broadlink");
|
||||
Iterator<String> keys = broadlinkMap.keySet().iterator();
|
||||
while(keys.hasNext()) {
|
||||
|
||||
@@ -4097,7 +4097,7 @@ app.controller('BroadlinkController', function ($scope, $location, bridgeService
|
||||
|
||||
$scope.buildDeviceUrls = function (broadlinkdevice, dim_control, ondata, dimdata, offdata, colordata, buildonly) {
|
||||
var preCmd = "{\"id\":\"" + broadlinkdevice.id + "\",\"name\":\"" + broadlinkdevice.name + "\",\"type\":\"" + broadlinkdevice.type + "\",\"ipAddr\":\"" + broadlinkdevice.ipAddr + "\",\"macAddr\":\"" + broadlinkdevice.macAddr + "\",\"command\":\"";
|
||||
if(broadlinkdevice.baseType === '0000' || broadlinkdevice.type === '2711') {
|
||||
if(broadlinkdevice.baseType === '0000' || broadlinkdevice.baseType === '2711') {
|
||||
dimpayload = null;
|
||||
colorpayload = null;
|
||||
onpayload = preCmd + "on\"}";
|
||||
|
||||
Reference in New Issue
Block a user