Permalink
Browse files

Update mqtt_search.inc.php

  • Loading branch information...
directman66 committed Jan 24, 2019
1 parent 8e28075 commit e4fe9333db17794c250e444f6c9f58f82c996939
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/zigbee2mqtt/mqtt_search.inc.php
@@ -193,7 +193,7 @@
//$sql="SELECT * FROM (select * from zigbee2mqtt_devices_command WHERE zigbeeModel='".$zm."') zigbee2mqtt_devices_command LEFT JOIN (select * from zigbee2mqtt where PATH like CONCAT('%','".$ssql['IEEEADDR']."','%') ) zigbee2mqtt ON zigbee2mqtt.METRIKA=zigbee2mqtt_devices_command.value_template ";
$sql="select * from (select * from zigbee2mqtt where PATH like CONCAT('%','".$ssql['IEEEADDR']."','%') )zigbee2mqtt left join (select * from zigbee2mqtt_devices_command WHERE zigbeeModel='".$zm."') zigbee2mqtt_devices_command ON zigbee2mqtt.METRIKA=zigbee2mqtt_devices_command.value_template ";
$sql="select * from (select *,zigbee2mqtt.ID zmID from zigbee2mqtt where PATH like CONCAT('%','".$ssql['IEEEADDR']."','%') )zigbee2mqtt left join (select * from zigbee2mqtt_devices_command WHERE zigbeeModel='".$zm."') zigbee2mqtt_devices_command ON zigbee2mqtt.METRIKA=zigbee2mqtt_devices_command.value_template ";
debmes($sql,'zigbee2mqtt');

0 comments on commit e4fe933

Please sign in to comment.