mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
Update zigbee-shepherd-converters to 7.0.1
This commit is contained in:
1 parent
65526e7f68
commit
a13bd85ef3
10 files changed
+66
-24
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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],
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user