Skip to content
Permalink
Browse files

Update zigbee2mqtt.class.php

  • Loading branch information...
directman66 committed Apr 10, 2019
1 parent ea8671a commit ab7d7f41340982b2ea83f344a83564d8745ea467
Showing with 5 additions and 2 deletions.
  1. +5 −2 modules/zigbee2mqtt/zigbee2mqtt.class.php
@@ -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'])
{
@@ -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);
}

0 comments on commit ab7d7f4

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