Skip to content
Permalink
Browse files

Update zigbee2mqtt.class.php

  • Loading branch information...
directman66 committed Apr 22, 2019
1 parent aa836ed commit af924fdc8492cca8b5c7361d0c8703b2d94f1ed7
Showing with 15 additions and 2 deletions.
  1. +15 −2 modules/zigbee2mqtt/zigbee2mqtt.class.php
@@ -977,6 +977,21 @@ function admin(&$out) {
$ok=0;
}
global $devlocid;
$rec['LOCATION_ID']=$devlocid;
if ($rec['LOCATION_ID']=='') {
$out['ERR_LOCATION_ID']=1;
$ok=0;
}
debmes('$dev_location_id='. $devlocid, 'zigbee2mqtt');
global $selecttype;
$rec['SELECTTYPE']=$selecttype;
if ($rec['SELECTTYPE']=='') {
@@ -1002,8 +1017,6 @@ function admin(&$out) {
$this->sendcommand('zigbee2mqtt/bridge/group/'.$creategroup.'/add', $dev_title);
}
global $dev_location_id;
$rec['LOCATION_ID']=$dev_location_id;
//$vm=$dev_location_id;
// echo "<script type='text/javascript'>";

0 comments on commit af924fd

Please sign in to comment.
You can’t perform that action at this time.