File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments