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 May 27, 2019
1 parent 28e1103 commit d75eafe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/zigbee2mqtt/zigbee2mqtt.class.php
Expand Up @@ -1034,6 +1034,8 @@ function admin(&$out) {
$out['MQTT_HOST']=$this->config['MQTT_HOST']; $out['MQTT_HOST']=$this->config['MQTT_HOST'];
$out['MQTT_PORT']=$this->config['MQTT_PORT']; $out['MQTT_PORT']=$this->config['MQTT_PORT'];
$out['Z2M_LOGMODE']=$this->config['Z2M_LOGMODE']; $out['Z2M_LOGMODE']=$this->config['Z2M_LOGMODE'];
$out['Z2M_VIEW']=$this->config['Z2M_VIEW'];

// $out['Z2M_LOGMODE']='deb'; // $out['Z2M_LOGMODE']='deb';


$out['ZIGBEE2MQTTPATH']=$this->config['ZIGBEE2MQTTPATH']; $out['ZIGBEE2MQTTPATH']=$this->config['ZIGBEE2MQTTPATH'];
Expand Down Expand Up @@ -1195,7 +1197,9 @@ function admin(&$out) {


if ($this->tab=='device_log'){ if ($this->tab=='device_log'){


$sql0='SELECT * FROM zigbee2mqtt_log where TITLE like "%'.$res['IEEEADDR'].'%" order by FIND DESC LIMIT 100'; $sql0='SELECT * FROM zigbee2mqtt_log where TITLE like "%'.$res['IEEEADDR'].'%" order by FIND DESC LIMIT 100';
// $sql0='SELECT * FROM zigbee2mqtt_log where TITLE like "%'.$res['IEEEADDR'].'%" and TITLE not like "%'.$res['IEEEADDR'].'" order by FIND DESC LIMIT 100';
// $sql0='SELECT * FROM zigbee2mqtt_log where TITLE not like "%'.$res['IEEEADDR'].'" order by FIND DESC LIMIT 100';


debmes($sql0,'zigbee2mqtt'); debmes($sql0,'zigbee2mqtt');


Expand Down Expand Up @@ -1773,6 +1777,7 @@ function admin(&$out) {
global $z2m_logmode2; global $z2m_logmode2;
global $mqtt_query; global $mqtt_query;
global $zigbee2mqttpath; global $zigbee2mqttpath;
global $z2m_view;
//echo $zigbee2mqttpath; //echo $zigbee2mqttpath;


//$vm1=$this->view_mode; //$vm1=$this->view_mode;
Expand All @@ -1791,6 +1796,7 @@ function admin(&$out) {
$this->config['MQTT_PORT']=(int)$mqtt_port; $this->config['MQTT_PORT']=(int)$mqtt_port;
$this->config['MQTT_QUERY']=trim($mqtt_query); $this->config['MQTT_QUERY']=trim($mqtt_query);
$this->config['Z2M_LOGMODE']=trim($z2m_logmode2); $this->config['Z2M_LOGMODE']=trim($z2m_logmode2);
$this->config['Z2M_VIEW']=trim($z2m_view);




// $this->sendcommand('zigbee2mqtt/bridge/config/log_level', $z2m_logmode); // $this->sendcommand('zigbee2mqtt/bridge/config/log_level', $z2m_logmode);
Expand Down

0 comments on commit d75eafe

Please sign in to comment.