You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to Hap docs some fields should be persistent through the life of an Accessory (or Bridge).
It is why it was also planned to use those fields' id creation:
Looks like this is not implemented for Bridge.
Implementation must be backward compatible.
I finally understand what you mean. As I do not see any possibility to check wether a node has just been added or if it was in the flow already, how about introducing a flag in the config like useHapConformIdentifier that defaults to true and is invisible in the user interface? That way, the property should be true for any new nodes that were added after an update of nrchkb and null for the legacy ones. As an alternative the version number at the time of a nodes creation could be added, but I wonder if that makes the code less readable and if there is really a second use case for a property like that.
It is second case in the last time :)
And more cases are coming as big features will land soon. Breaking compatibility is not an option until it is related to general stability.
So I believe adding version field (which we already have available in UI side :) ) is a good idea. This field could be either hidden or read only for user knowledge.
According to Hap docs some fields should be persistent through the life of an Accessory (or Bridge).
It is why it was also planned to use those fields' id creation:
Looks like this is not implemented for Bridge.
Implementation must be backward compatible.
node-red-contrib-homekit-bridged/src/lib/HAPHostNode.ts
Lines 79 to 91 in 8fb7267
The text was updated successfully, but these errors were encountered: