Skip to content
Permalink
Browse files

Update mqtt_search.inc.php

  • Loading branch information...
directman66 committed Jun 7, 2019
1 parent 07c62ae commit 1f352409d2cee540bac1d2bd7d2521d368a4fdb1
Showing with 14 additions and 1 deletion.
  1. +14 −1 modules/zigbee2mqtt/mqtt_search.inc.php
@@ -137,7 +137,20 @@
//if ($res2[$j]['LINKED_PROPERTY']) $prpr='.'.$res2[$j]['LINKED_PROPERTY']; else $prpr="";
if ($res2[$j]['LINKED_PROPERTY']) $lnk.=$res2[$j]['VALUE'].'; ';
if (
($res2[$j]['METRIKA']=='state')||
($res2[$j]['METRIKA']=='occupancy')||
($res2[$j]['METRIKA']=='brightness')||
($res2[$j]['METRIKA']=='click')||
($res2[$j]['METRIKA']=='action')||
($res2[$j]['METRIKA']=='state_left')||
($res2[$j]['METRIKA']=='state_right')||
($res2[$j]['METRIKA']=='contact')||
($res2[$j]['METRIKA']=='temperature')||
($res2[$j]['METRIKA']=='humidity')
)
if ($res2[$j]['LINKED_PROPERTY']) $lnk.=$res2[$j]['VALUE'].'; ';
//$lnk.=$res2[$j]['LINKED_OBJECT'].$prpr.":".$res2[$j]['VALUE'].'; ';

0 comments on commit 1f35240

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