File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
# phpTradfri - Version History
2
+ ## Version 2.4 - 25th Sep 2019
3
+ * groups.php
4
+ + add getMembers() Function
2
5
## Version 2.3 - 22nd Sep 2019
3
6
* devices.php
4
7
+ add Last Seen Information for Lamps and Remote Controls
Original file line number Diff line number Diff line change @@ -37,6 +37,14 @@ function getIdbyName($name){
37
37
38
38
}
39
39
40
+ function getMembers ($ Id ){
41
+
42
+ $ members = $ this ->getDetails ("15004/ $ Id " );
43
+
44
+ return $ members ['9018 ' ]['15002 ' ]['9003 ' ];
45
+
46
+ }
47
+
40
48
function getPowerStatus ($ Id ){
41
49
42
50
$ psid = $ this ->getDetails ("15004/ $ Id " );
@@ -78,10 +86,10 @@ function setDimmer($path, $dimmer){
78
86
$ payload = '{ " ' .DIMMER .'": ' .$ dim .' } ' ;
79
87
$ this ->action ("put " , $ payload , "15004/ $ path " );
80
88
81
- if ($ this ->getDimmer ($ path ) == $ dim )
89
+ // if($this->getDimmer($path) == $dim)
82
90
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.";*/
85
93
86
94
}
87
95
You can’t perform that action at this time.
0 commit comments