Update zigbee-shepherd-converters to 7.0.1

This commit is contained in:
Koen Kanters committed 2018-12-06 21:27:41 +01:00
1 parent 65526e7f68
commit a13bd85ef3
10 files changed
+66 -24

No files matched your search

+2 -2
View File
@@ -115,14 +115,14 @@ class DevicePublish {
// For each key in the JSON message find the matching converter.
Object.keys(json).forEach((key) => {
const converter = model.toZigbee.find((c) => c.key === key);
const converter = model.toZigbee.find((c) => c.key.includes(key));
if (!converter) {
logger.error(`No converter available for '${key}' (${json[key]})`);
return;
}
// Converter didn't return a result, skip
const converted = converter.convert(json[key], json, topic.type);
const converted = converter.convert(key, json[key], json, topic.type);
if (!converted) {
return;
}
+1
View File
@@ -403,6 +403,7 @@ const mapping = {
'PSS-23ZBS': [configurations.switch],
'HS1SA': [configurations.binary_sensor_smoke],
'Z01-A19NAE26': [configurations.light_brightness_colortemp],
'AC01353010G': [configurations.binary_sensor_occupancy, configurations.sensor_temperature],
};
/**