node-red-contrib-knx-ultimate
Advanced tools
Comparing version
@@ -347,2 +347,10 @@ /* eslint-disable camelcase */ | ||
} | ||
if (_rtype === 'device_software_update') { | ||
const Room = node.hueAllRooms.find((room) => room.children.find((child) => child.rid === resource.owner.rid)) | ||
const linkedDevName = node.hueAllResources.find((dev) => dev.type === 'device' && dev.services.find((serv) => serv.rid === resource.id)).metadata.name || '' | ||
retArray.push({ | ||
name: `Software status: ${linkedDevName}${Room !== undefined ? `, room ${Room.metadata.name}` : ''}`, | ||
id: resource.id, | ||
}); | ||
} | ||
} catch (error) { | ||
@@ -349,0 +357,0 @@ retArray.push({ |
@@ -212,2 +212,3 @@ | ||
} | ||
msg.knx = { dpt: '1.001' }; | ||
@@ -214,0 +215,0 @@ node.handleSend(msg); |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "3.0.0-beta1", | ||
"version": "3.0.0-beta2", | ||
"description": "Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer. Easy to use and highly configurable.", | ||
@@ -51,3 +51,4 @@ "dependencies": { | ||
"knxUltimateContactSensor": "/nodes/knxUltimateHueContactSensor.js", | ||
"knxUltimateHATranslator": "/nodes/knxUltimateHATranslator.js" | ||
"knxUltimateHATranslator": "/nodes/knxUltimateHATranslator.js", | ||
"knxUltimateHuedevice_software_update": "/nodes/knxUltimateHuedevice_software_update.js" | ||
} | ||
@@ -54,0 +55,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7152600
0.24%372
0.54%19857
0.65%11
-8.33%