homebridge-tasmota-control 1.6.1-beta.4 → 1.6.1-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sensors.js +2 -2
package/package.json
CHANGED
package/src/sensors.js
CHANGED
|
@@ -138,10 +138,10 @@ class Sensors extends EventEmitter {
|
|
|
138
138
|
this.sensors.push(sensor);
|
|
139
139
|
|
|
140
140
|
//update characteristics
|
|
141
|
-
const update = (servicesArray,
|
|
141
|
+
const update = (servicesArray, subtype, charName, value) => {
|
|
142
142
|
const service = servicesArray?.[i];
|
|
143
143
|
const characteristic = service?.Characteristic?.[charName];
|
|
144
|
-
if (service?.
|
|
144
|
+
if (service?.subtype === subtype && characteristic && Characteristic?.[charName]) {
|
|
145
145
|
characteristic.updateCharacteristic(Characteristic[charName], value);
|
|
146
146
|
}
|
|
147
147
|
};
|