Skip to content

Commit

Permalink
Update mqtt_search.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
directman66 committed Jun 7, 2019
1 parent 07c62ae commit 1f35240
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion modules/zigbee2mqtt/mqtt_search.inc.php
Expand Up @@ -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'].'; ';

Expand Down

0 comments on commit 1f35240

Please sign in to comment.