Skip to content

Commit

Permalink
Update zigbee2mqtt.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
directman66 committed Apr 10, 2019
1 parent ea8671a commit ab7d7f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/zigbee2mqtt/zigbee2mqtt.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,9 @@ function refreshdb_mqtt() {
//$res2['MODEL']=$json[$i]->{'type'};


$res2['IEEEADDR']= $json[$i]->{'ieeeAddr'};
//$res2['IEEEADDR']= $json[$i]->{'ieeeAddr'};
$res2['IEEEADDR']=$cdev;


if ($res2['ID'])
{
Expand All @@ -1313,7 +1315,8 @@ function refreshdb_mqtt() {

$res2['TITLE']=$res2['IEEEADDR'];
debmes($res2, 'zigbee2mqtt');
if (($res2['TITLE'])&&($res2['TYPE']!='Coordinator')&&($res2['TITLE']!='bridge')) SQLInsert('zigbee2mqtt_devices', $res2);
if (($res2['TITLE'])&&($res2['TYPE']!='Coordinator')&&($res2['TITLE']!='bridge'))
SQLInsert('zigbee2mqtt_devices', $res2);
}


Expand Down

0 comments on commit ab7d7f4

Please sign in to comment.