Skip to content
Permalink
Browse files

Update zigbee2mqtt.class.php

  • Loading branch information...
directman66 committed Apr 27, 2019
1 parent afbc8c8 commit 3c9dcce18955bf7e56ec2ba96b202d002c1b0a52
Showing with 17 additions and 2 deletions.
  1. +17 −2 modules/zigbee2mqtt/zigbee2mqtt.class.php
@@ -666,7 +666,12 @@ function processMessage($path, $value) {
// $this->refresh_db();
$this->refreshdb_mqtt();
// $this->refreshdb_mqtt();
SQLExec ('update zigbee2mqtt set VALUE="" where TITLE="zigbee2mqtt/bridge/log"');
$this->sendcommand('zigbee2mqtt/bridge/config/devices', '');
}
@@ -759,7 +764,17 @@ function processMessage($path, $value) {
}
//сюда пишем обработчик click
if ((substr($path,strrpos($path,'/')+1)=='click')||(substr($path,strrpos($path,'/')+1)=='release'))
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
if ((substr($path,strrpos($path,'/')+1)=='click')||(substr($path,strrpos($path,'/')+1)=='release')||(substr($path,strrpos($path,'/')+1)=='action'))
{
debmes('получено сообщение от пульта, разберем возможные варианты','zigbee2mqtt');

0 comments on commit 3c9dcce

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