Skip to content
Permalink
Browse files

Update database2.inc.php

  • Loading branch information...
directman66 committed Jun 2, 2019
1 parent c76c777 commit f61825856a14cc39d52bbf7f93d8c42234c7d374
Showing with 19 additions and 3 deletions.
  1. +19 −3 modules/zigbee2mqtt/database2.inc.php
@@ -3160,7 +3160,7 @@
$par2['command_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>/set" ;
$par2['payload_on'] = "";
$par2['payload_off'] = "";
$par2['value_template'] = "state";
$par2['value_template'] = "x";
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
@@ -3177,7 +3177,7 @@
$par2['command_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>/set" ;
$par2['payload_on'] = "";
$par2['payload_off'] = "";
$par2['value_template'] = "state";
$par2['value_template'] = "y";
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
@@ -3194,14 +3194,30 @@
$par2['command_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>/set" ;
$par2['payload_on'] = "";
$par2['payload_off'] = "";
$par2['value_template'] = "state";
$par2['value_template'] = "color";
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['color_temp'] = "";
$par2['command_value'] = "color";
SQLInsert('zigbee2mqtt_devices_command', $par2);
$par2['zigbeeModel'] = 'LED1624G9';
$par2['type'] = "light";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['brightness'] = "";
$par2['xy'] = "true";
$par2['command_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>/set" ;
$par2['payload_on'] = "";
$par2['payload_off'] = "";
$par2['value_template'] = "color_mode";
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['color_temp'] = "";
$par2['command_value'] = "color_mode";
SQLInsert('zigbee2mqtt_devices_command', $par2);
////////////////////////////////////////////////

0 comments on commit f618258

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