Skip to content
Permalink
Browse files

Update database2.inc.php

  • Loading branch information...
directman66 committed May 12, 2019
1 parent ba42771 commit 3d51f0cb1e2447004c7b86b7ca13685206708ce7
Showing with 41 additions and 6 deletions.
  1. +41 −6 modules/zigbee2mqtt/database2.inc.php
@@ -993,7 +993,7 @@
$par2['type'] = "sensor";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['unit_of_measurement'] = "°C";
$par2['unit_of_measurement'] = "°C";
$par2['device_class'] = "temperature";
$par2['value_template'] = "temperature";
$par2['json_attributes'] = "" ;
@@ -1092,7 +1092,7 @@
$par2['type'] = "sensor";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['unit_of_measurement'] = "°C";
$par2['unit_of_measurement'] = "°C";
$par2['device_class'] = "";
$par2['value_template'] = "temperature";
$par2['json_attributes'] = "" ;
@@ -4157,7 +4157,7 @@
$par2['type'] = "sensor";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['unit_of_measurement'] = "°C";
$par2['unit_of_measurement'] = "°C";
$par2['device_class'] = "temperature";
$par2['value_template'] = "temperature";
$par2['json_attributes'] = "linkquality,battery,voltage";
@@ -5382,7 +5382,7 @@
$par2['type'] = "sensor";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['unit_of_measurement'] = "°C";
$par2['unit_of_measurement'] = "°C";
$par2['device_class'] = "";
$par2['value_template'] = "temperature";
$par2['json_attributes'] = "";
@@ -7299,7 +7299,7 @@
$par2['type'] = "sensor";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['unit_of_measurement'] = "°C";
$par2['unit_of_measurement'] = "°C";
$par2['device_class'] = "temperature";
$par2['value_template'] = "temperature";
$par2['json_attributes'] = "" ;
@@ -7830,7 +7830,7 @@
//ZNLDP12LM ;
$par2['zigbeeModel'] = 'ZNLDP12LM';
$par2['type'] = "light";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['brightness'] = "true";
$par2['command_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>/set" ;
@@ -7939,6 +7939,41 @@
//LLKZMK11LM;
$par2['zigbeeModel'] = 'LLKZMK11LM';
$par2['type'] = "relay";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l1";
$par2['command_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>/state_l1";
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l1";
SQLInsert('zigbee2mqtt_devices_command', $par2);
//LLKZMK11LM;
$par2['zigbeeModel'] = 'LLKZMK11LM';
$par2['type'] = "relay";
$par2['state_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>";
$par2['availability_topic'] = "zigbee2mqtt/bridge/state";
$par2['payload_off'] = "OFF" ;
$par2['payload_on'] = "ON" ;
$par2['value_template'] = "state_l2";
$par2['command_topic'] = "zigbee2mqtt/<FRIENDLY_NAME>/state_l2";
$par2['json_attributes'] = "";
$par2['device_class'] = "";
$par2['unit_of_measurement'] = "";
$par2['brightness'] = "";
$par2['color_temp'] = "";
$par2['xy'] = "";
$par2['command_value'] = "state_l2";
SQLInsert('zigbee2mqtt_devices_command', $par2);

0 comments on commit 3d51f0c

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