node-red-contrib-homebridge-automation
node-red-contrib-homebridge-automation copied to clipboard
Same name cannot be selected
Current Situation
I have a slightly different problem in node red I have my rolling shutters (control windows covering) which have the same name, (they do have different names however) if I click on the 2nd or 3rd in the list it only selects the first each time
Logs
.
Configuration
.
Environment
- OS: 22.04
- Software:
- Node:
- npm:
Process Supervisor
hb-service
Additional Context
No response
I found I changed "name" to "Serial Number"
devices.characteristics.forEach(function (element) { // var service = new Characteristic(element, this); if (element.type.substring(0, 8) === '00000023' && element.description === "Serial Number") { this.name = element.value; } else if (element.type.substring(0, 8) === '000000E3' && element.description === "Configured Name") { this.configuredName = element.value; } else { // this.characteristics.push(service); } }.bind(this)); devices.characteristics.forEach(function (element) { var service = new Characteristic(element, this); if (element.type.substring(0, 8) === '00000023' && element.description === "Serial Number") { this.name = element.value; } else if (element.type.substring(0, 8) === '000000E3' && element.description === "Configured Name") { this.configuredName = element.value; } else { this.characteristics.push(service); } }.bind(this)); if (this.configuredName) { this.name = this.configuredName; } // Uncomment to display services not defined // if (!this.service) { // console.log('Missing', devices); // } }
This should now be resolved in the latest release