Skip to content

Commit 3ce6e5a

Browse files
authored
Merge pull request #11 from strfl89/testing
Add Support for SYMFONISK Sound Controller
2 parents 94f1023 + 179c22f commit 3ce6e5a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

defines.php

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
define('TYPE_LIGHT', 2); //5750 = 2 => All lightning Devices (Driver, Lamps, ...)
2121
define('TYPE_CONTROL_OUTLET', 3); //5750 = 3 => Control Outlet for power Switching
2222
define('TYPE_MOTION_SENSOR', 4); //5750 = 4 => Motion Sensor
23+
define('TYPE_SYMFONISK_CONTROLLER', 8)
2324
define('GATEWAY', 15011);
2425
define('GATEWAY_NTP', 9023);
2526
define('GATEWAY_FIRMWARE', 9029);

devices.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function statusremotecontrol(){
168168

169169
foreach($Ids as $device){
170170
$details = $this->getDetails("15001/$device");
171-
if($details[TYPE] == TYPE_REMOTE_CONTROL || $details[TYPE] == TYPE_MOTION_SENSOR){
171+
if($details[TYPE] == TYPE_REMOTE_CONTROL || $details[TYPE] == TYPE_MOTION_SENSOR || $details[TYPE] == TYPE_SYMFONISK_CONTROLLER){
172172
$output[] = array("id" => $device,"name" => $details[NAME], "type" => $details['3']['1'], "battery" => $details['3']['9'], "firmware" => $details['3']['3'], "lastseen" => date('H:i:s d.m.Y', $details[LAST_SEEN]), "lastseenunix" => $details[LAST_SEEN]);
173173
}
174174
}

0 commit comments

Comments
 (0)