mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 00:10:20 +00:00
Updated LIFX impl
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.bwssystems.HABridge</groupId>
|
<groupId>com.bwssystems.HABridge</groupId>
|
||||||
<artifactId>ha-bridge</artifactId>
|
<artifactId>ha-bridge</artifactId>
|
||||||
<version>4.1.2b</version>
|
<version>4.1.2c</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HA Bridge</name>
|
<name>HA Bridge</name>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ app.config (function ($locationProvider, $routeProvider) {
|
|||||||
controller: 'DomoticzController'
|
controller: 'DomoticzController'
|
||||||
}).when ('/lifxdevices', {
|
}).when ('/lifxdevices', {
|
||||||
templateUrl: 'views/lifxdevice.html',
|
templateUrl: 'views/lifxdevice.html',
|
||||||
controller: 'DomoticzController'
|
controller: 'LifxController'
|
||||||
}).otherwise ({
|
}).otherwise ({
|
||||||
templateUrl: 'views/configuration.html',
|
templateUrl: 'views/configuration.html',
|
||||||
controller: 'ViewingController'
|
controller: 'ViewingController'
|
||||||
@@ -2336,7 +2336,7 @@ app.controller('LifxController', function ($scope, $location, $http, bridgeServi
|
|||||||
dimpayload = angular.toJson(lifxdevice);
|
dimpayload = angular.toJson(lifxdevice);
|
||||||
onpayload = angular.toJson(lifxdevice);
|
onpayload = angular.toJson(lifxdevice);
|
||||||
offpayload = angular.toJson(lifxdevice);
|
offpayload = angular.toJson(lifxdevice);
|
||||||
bridgeService.buildUrls(onpayload, dimpayload, offpayload, false, lifxdevice.name, lifxdevice.name, lifxdevice.name, null, "lifxDevice", null, null);
|
bridgeService.buildUrls(onpayload, dimpayload, offpayload, true, lifxdevice.name, lifxdevice.name, lifxdevice.name, null, "lifxDevice", null, null);
|
||||||
$scope.device = bridgeService.state.device;
|
$scope.device = bridgeService.state.device;
|
||||||
bridgeService.editNewDevice($scope.device);
|
bridgeService.editNewDevice($scope.device);
|
||||||
$location.path('/editdevice');
|
$location.path('/editdevice');
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<td>{{lifxdev.type}}</td>
|
<td>{{lifxdev.type}}</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-success" type="submit"
|
<button class="btn btn-success" type="submit"
|
||||||
ng-click="buildLifxDevice(lifxdev)">Build
|
ng-click="buildDeviceUrls(lifxdev)">Build
|
||||||
Item</button>
|
Item</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user