Page 1 of 1

Migrate Installation from Fibaro

Posted: Tuesday 24 September 2019 22:38
by unitedeurope001
Hello,

I have a 60 device installation on Fibaro Home Center. The Fibaro system keeps crashing and making problems. Also Domoticz is far more versatile. I want to throw out Fibaro all together.

How can I migrate without readopting all devices?

Many thanks
Kai

Re: Migrate Installation from Fibaro

Posted: Tuesday 24 September 2019 23:40
by ben53252642
You can do a Z-Wave controller migration but I'd really suggest starting from scratch.

If you do a controller migration, Domoticz will not know what many devices are (same goes for most other systems) because of how Z-Wave works, it does a "device interview" to learn about each device. Battery devices and some powered devices really only do this well during the pairing process.

So yes it's technically possible (same goes for most other systems), but I'd say almost certainly you would have many problems with devices not being identified correctly.

My suggestion is to start from scratch, you will have the best experience.

Also if your starting with a Raspberry Pi, be sure to use an SSD not a Micro SD card. If you search around the forum, it's pretty well known that the Micro SD cards wear out rather quickly. Even better, build your new system on a cheap core i3 Intel NUC.

As for Z-Wave controllers, my personal favorite is the UZB-1 from Z-Wave.me https://z-wave.me/uzb/

Welcome to Domoticz!

Re: Migrate Installation from Fibaro

Posted: Wednesday 25 September 2019 9:03
by lost
ben53252642 wrote: Tuesday 24 September 2019 23:40 Also if your starting with a Raspberry Pi, be sure to use an SSD not a Micro SD card. If you search around the forum, it's pretty well known that the Micro SD cards wear out rather quickly. Even better, build your new system on a cheap core i3 Intel NUC.
A PI for this kind of use is already overkill: Mine always never exceed 3% CPU load, can reach 10% when unattended upgrade triggers. So a NUC will just increase the electricity bill in 24/7 usage.

As well, uSD card will work for years with a few targeted changes.

On my side, I've setup a service that use a FTP to get IP cams around the house snapshots every 10s & cypher/compress/send them immediately on a gmail account. This is a lot of data that don't remain for long: All this is done using "ramdisks" with tmpfs mount points.

All domoticz stuff (DB etc) as well as raspbian logs (want to be still able to debug post mortem) remains on the SD, thanks to a few tuning in sysfs to allow more write buffering/merging than default configuration.

You can dig into this:
https://www.kernel.org/doc/Documentatio ... fs-fs-ext4
https://www.kernel.org/doc/Documentation/sysctl/vm.txt

This one is quite old but still valid (explanations, not values in our context):
https://lonesysadmin.net/2013/12/22/bet ... rty_ratio/

On my side I have this:
vm.dirty_ratio = 60
vm.dirty_expire_centisecs = 120000

Can set quite high figures because I run a minimal system (no desktop/graphical interface, almost useless on a headless system accessed only using ssh), that only use a small fraction of 1GB memory (+ GPU dedicated memory can be reduced to the min using raspi-config).

Thus that ability to buffer/merge writes up to 2mn (commit time=120s, if 60% available memory ratio not hit) instead of 5s, which makes a big difference on log files always opened in append mode.

This also improve Domoticz web page reactivity.

So, my advice is to understand, then test & try available ext4 (not so much) and vmm (the gold mine!) sysfs tunables before spending money for an external SSD bigger than the PI case.

On uSD side, device choice also makes a difference: You have now the A1/A2 standards (for applicative loads, with better IO/s for A2) that are designed to extend smartphone internal memory. The big difference for us is theses ones are designed for an always on use case (very different from removable media use-case that is almost always off, thus not able to do background tasks): So you get static wear levelling (able to evenly distribute wear on the whole device efficiently) instead of dynamic (wear only distributed on underlying flash sectors that are written, thus a very small subset that quickly create hot-spots and early failures of whole devices for only a few sectors ruined).

To sum-up:
No need for a SSD is using an A1/A2 uSD from a good manufacturer + tuning a few vmm sysfs that'll allow much more write buffering/merge.