Hi!
I started my home automation using Pilight on a Raspberry 3B to control some 433MHz switches and shutters. As 433 MHz tends to be unreliable due to interference from neighbor devices, I migrated to Shelly devices using WLAN. They were regimentally included in Pilight by MQTT.
To have more possibilities, I then switched to openHAB 2.5. It was initially installed on an Ubuntu box to set up things, items, habpanel and rules and was then manually installed in the Raspberry on top of the Pilight installation, using Shelly and Pilight-bindings.
This was running relatively stable for some years, until I lost some Shelly Gen1 devices due to an overvoltage and had to replace them by Gen 2 devices. As those were not supported by the 2.5 Shelly-binding, I was forced to migrate.
I started again on the Ubuntu box with OH3. Unfortunately the Shelly Plus PlugS were not yet supported. I tried to use a beta Shelly-Binding but did not succeed.
By this time OH4 was released and I started a new test setup. As Iâm more proficient on Windows, I used the Windows setup, which worked flawlessly. I developed a new test version from scratch, using the chance to clean up my namingâs, etc⊠I used PaperUI for things and items, HABPanel for the UI und rules in DSL-based .rules files. Backup-files were regularly generated. When everything worked, I was ready to move to the Raspberry.
The transmitter/receiver for 433MHz was removed, as I had fully moved to Shelly. I prepared a new SD card using openHABian 1.8b 32Bit.
After flashing with Etcher the validation failed. I used another card, but to no avail. It seems to be a Windows related problem, because Windows tries to mount the new partitions and robs Etcher the access to the card. So I ignored the validation-error and had no Issues during install.
I moved my latest backup-zip to the root of the card and entered it in openhabian.conf. The install worked fine, but the backup was not restored. I then copied the backup-zip manually and tried to restore via openhabian-config. This showed the reason for the failure, the zip contained backslashes. This turned out to be a bug with the generic packing in WIN10. Although windows uses backslashes, it should write normal slashes into the zip directory. After unzipping and rezipping using WinZip the backslashes were gone and the restore could be done. This worked great, restoring bindings, things, items, rules, persistence, etc.
I could not access the shared samba directories with write permission from windows. Running openhabian-config menu 14 did fix the permissions.
As I want to access the log-files directly from windows, I removed zram using menu 38 of openhabian-config. Now the logs were written to files, but could not yet be accessed by Windows. I had to remove the comment signs in the [openHAB-logs] section of /etc/samba/smb.conf. To avoid stressing the SD card I changed the logging for events.log from INFO to WARN in openHAB-userdata/etc/log4j2.xml.
I hope this might help somebody, who is doing a similar migration
The new installation of OH4 runs very stable, Iâm now happy I did migrate and did use openHABian to setup the SD card
Uli