Skip to content

Commit 4cdb6a1

Browse files
committed
Extend groups.php
add getMembers() Function
1 parent 8ac5a34 commit 4cdb6a1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
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

+8
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");

0 commit comments

Comments
 (0)