Open mStirner opened 5 months ago
When a new interface is added to a device, its not automatically bridged:
[2024.01.25 - 12:15.05.879][debug][system] Device in backend updated { _id: '65b23fe8fce293386bff6a34', name: 'Dummy Device', timestamps: { created: 1706180584953, updated: 1706181305867 }, labels: [], room: null, enabled: true, interfaces: [ { _id: '6581c55abc21a0a3122b9998', type: 'ETHERNET', description: 'WebSocket API', settings: [Object], adapter: [Array] } ], icon: null } [2024.01.25 - 12:15.05.881][debug][system] iface 6581c55abc21a0a3122b9998 updated, wait 1.5s
Because: https://github.com/OpenHausIO/connector/blob/9727a3eb682326346e03b1efc7d16ffeb8437a48/handler.js#L100-L131
When the device had no interface, and one was later added, there exists not worker for the interface. There fore a update of the device (what its done when a interface is added) does no recreate the worker, because there was no worker previously.
When a new interface is added to a device, its not automatically bridged:
Because: https://github.com/OpenHausIO/connector/blob/9727a3eb682326346e03b1efc7d16ffeb8437a48/handler.js#L100-L131
When the device had no interface, and one was later added, there exists not worker for the interface. There fore a update of the device (what its done when a interface is added) does no recreate the worker, because there was no worker previously.