Update converters.

This commit is contained in:
Koen Kanters
2020-01-25 20:00:22 +01:00
parent 93e96a2e5e
commit bd30b0b4a3
3 changed files with 19 additions and 8 deletions
+12 -1
View File
@@ -290,6 +290,14 @@ const cfg = {
icon: 'mdi:filter-variant',
},
},
'sensor_strength': {
type: 'sensor',
object_id: 'strength',
discovery_payload: {
value_template: '{{ value_json.strength }}',
icon: 'mdi:weight',
},
},
// Light
'light_brightness_colorxy_white': {
@@ -632,7 +640,7 @@ const mapping = {
'433714': [cfg.light_brightness],
'3261030P7': [cfg.light_brightness_colortemp],
'3216431P5': [cfg.light_brightness_colortemp],
'DJT11LM': [cfg.sensor_action, cfg.sensor_battery, cfg.sensor_sensitivity],
'DJT11LM': [cfg.sensor_action, cfg.sensor_battery, cfg.sensor_sensitivity, cfg.sensor_strength],
'E1603/E1702': [cfg.switch],
'7199960PH': [cfg.light_brightness_colorxy],
'74696': [cfg.light_brightness],
@@ -1170,6 +1178,9 @@ const mapping = {
switchWithPostfix('l3'), switchWithPostfix('l4'),
],
'STS-WTR-250': [cfg.binary_sensor_water_leak, cfg.sensor_battery],
'ZG2835RAC': [cfg.light_brightness],
'BW-IS2': [cfg.binary_sensor_contact, cfg.sensor_battery],
'BW-IS3': [cfg.binary_sensor_occupancy],
};
Object.keys(mapping).forEach((key) => {
+6 -6
View File
@@ -2761,9 +2761,9 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
"inquirer": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.3.tgz",
"integrity": "sha512-+OiOVeVydu4hnCGLCSX+wedovR/Yzskv9BFqUNNKq9uU2qg7LCcCo3R86S2E7WLo0y/x2pnEZfZe1CoYnORUAw==",
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.4.tgz",
"integrity": "sha512-Bu5Td5+j11sCkqfqmUTiwv+tWisMtP0L7Q8WrqA2C/BbBhy1YTdFrvjjlrKq8oagA/tLQBski2Gcx/Sqyi2qSQ==",
"dev": true,
"requires": {
"ansi-escapes": "^4.2.1",
@@ -13445,9 +13445,9 @@
}
},
"zigbee-herdsman-converters": {
"version": "12.0.5",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.5.tgz",
"integrity": "sha512-lpVpn9/rrw1G2csRB5dSo5GatJI/DBrcACA+BDz+pTAI2ega57K7YIw1+NkWbV2bQtNZTQhhT289xYLDC5C5GA==",
"version": "12.0.6",
"resolved": "https://registry.npmjs.org/zigbee-herdsman-converters/-/zigbee-herdsman-converters-12.0.6.tgz",
"integrity": "sha512-ZmzrLun1pqWuq90htFwK5vCDpvZVpNt8rxHzxtvB/xJf4GZmVFGaEuQUBzoyNKqJHLcc68I6dd0xKON/ULNXCg==",
"dependencies": {
"@babel/code-frame": {
"version": "7.5.5",
+1 -1
View File
@@ -46,7 +46,7 @@
"semver": "*",
"winston": "*",
"zigbee-herdsman": "0.12.39",
"zigbee-herdsman-converters": "12.0.5"
"zigbee-herdsman-converters": "12.0.6"
},
"devDependencies": {
"eslint": "*",