Skip to content

Commit

Permalink
Merge pull request #10 from strfl89/testing
Browse files Browse the repository at this point in the history
Version 2.4
  • Loading branch information
strfl89 authored Sep 25, 2019
2 parents 2ffe1d4 + 4cdb6a1 commit 94f1023
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Release-Notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# phpTradfri - Version History
## Version 2.4 - 25th Sep 2019
* groups.php
+ add getMembers() Function
## Version 2.3 - 22nd Sep 2019
* devices.php
+ add Last Seen Information for Lamps and Remote Controls
Expand Down
14 changes: 11 additions & 3 deletions groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ function getIdbyName($name){

}

function getMembers($Id){

$members = $this->getDetails("15004/$Id");

return $members['9018']['15002']['9003'];

}

function getPowerStatus($Id){

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

if($this->getDimmer($path) == $dim)
//if($this->getDimmer($path) == $dim)
return $this->getName("15004/$path")." wurde auf {$dimmer} gedimmt.";
else
return $this->getName("15004/$path")." konnte nicht auf {$dimmer} gedimmt werden.";
/*else
return $this->getName("15004/$path")." konnte nicht auf {$dimmer} gedimmt werden.";*/

}

Expand Down

0 comments on commit 94f1023

Please sign in to comment.