Skip to content
Permalink
Browse files

Update zigbee2mqtt.class.php

  • Loading branch information...
directman66 committed Apr 22, 2019
1 parent e7b1f17 commit ec9c0b8eec826d0a8e31111461b5a52116451e57
Showing with 8 additions and 8 deletions.
  1. +8 −8 modules/zigbee2mqtt/zigbee2mqtt.class.php
@@ -739,24 +739,24 @@ function processMessage($path, $value) {
if(!$rec1['ID']){ /* If 'PATH' not found in db */
debmes('кнопка click нажата первый раз', 'zigbee2mqtt');
$rec1['PATH']=$path;
// $rec1['METRIKA']=$value;
$rec1['METRIKA']=$newvalue;
$rec1['METRIKA']=$value;
//$rec1['METRIKA']=$newvalue;
$rec1['DEV_ID']=$dev_id;
$rec1['TITLE']=$path;
// $rec['VALUE']=$value.'';
// $rec1['VALUE']=$newvalue;
$rec1['VALUE']=$value;
$rec1['VALUE']=$newvalue;
// $rec1['VALUE']=$value;
$rec1['UPDATED']=date('Y-m-d H:i:s');
$rec1['ID']=null;
SQLInsert('zigbee2mqtt', $rec1);
}else{
debmes('кнопка click ранее уже нажималас, есть информация в базе данных', 'zigbee2mqtt');
// $rec1['METRIKA']=$value;
$rec1['METRIKA']=$newvalue;
// $rec1['VALUE']=$newvalue;
$rec1['VALUE']=$value;
$rec1['METRIKA']=$value;
// $rec1['METRIKA']=$newvalue;
$rec1['VALUE']=$newvalue;
// $rec1['VALUE']=$value;
$rec1['DEV_ID']=$dev_id;
$rec1['UPDATED']=date('Y-m-d H:i:s');
SQLUpdate('zigbee2mqtt', $rec1);

0 comments on commit ec9c0b8

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