Skip to content

Commit 94f1023

Browse files
authored
Merge pull request #10 from strfl89/testing
Version 2.4
2 parents 2ffe1d4 + 4cdb6a1 commit 94f1023

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Release-Notes.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# phpTradfri - Version History
2+
## Version 2.4 - 25th Sep 2019
3+
* groups.php
4+
+ add getMembers() Function
25
## Version 2.3 - 22nd Sep 2019
36
* devices.php
47
+ add Last Seen Information for Lamps and Remote Controls

groups.php

+11-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ function getIdbyName($name){
3737

3838
}
3939

40+
function getMembers($Id){
41+
42+
$members = $this->getDetails("15004/$Id");
43+
44+
return $members['9018']['15002']['9003'];
45+
46+
}
47+
4048
function getPowerStatus($Id){
4149

4250
$psid = $this->getDetails("15004/$Id");
@@ -78,10 +86,10 @@ function setDimmer($path, $dimmer){
7886
$payload = '{ "'.DIMMER.'": '.$dim.' }';
7987
$this->action("put", $payload, "15004/$path");
8088

81-
if($this->getDimmer($path) == $dim)
89+
//if($this->getDimmer($path) == $dim)
8290
return $this->getName("15004/$path")." wurde auf {$dimmer} gedimmt.";
83-
else
84-
return $this->getName("15004/$path")." konnte nicht auf {$dimmer} gedimmt werden.";
91+
/*else
92+
return $this->getName("15004/$path")." konnte nicht auf {$dimmer} gedimmt werden.";*/
8593

8694
}
8795

0 commit comments

Comments
 (0)