mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 16:17:30 +00:00
updated to new BL api lib added debug and fixed device build for BL in
app.js
This commit is contained in:
@@ -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