Thanks for this Homebridge plugin for the Xiaomi Mi Flora, it works really well!
This tiny patch simply sets the accessory displayName attribute, as it is expected by fakegato-history as part of the file name when using the filesystem storage. Without this change the file is called something like raspberrypi_undefined_persist.json and could conflict with other plugins.
Another way to fix it would be to rename the name attribute to displayName, but this touches more lines of code and I didn't know whether you wanted this so I simply added another attribute. I'm happy to change the PR if you prefer.
Hi Tobias,
Thanks for this Homebridge plugin for the Xiaomi Mi Flora, it works really well!
This tiny patch simply sets the accessory
displayName
attribute, as it is expected by fakegato-history as part of the file name when using the filesystem storage. Without this change the file is called something likeraspberrypi_undefined_persist.json
and could conflict with other plugins.Another way to fix it would be to rename the
name
attribute todisplayName
, but this touches more lines of code and I didn't know whether you wanted this so I simply added another attribute. I'm happy to change the PR if you prefer.