Import Vera Rules in Docker Containers?
-
Did MSR running on Docker ever gain the ability to do the R4V import? I recall it being a platform limitation for those who installed it on Synology NAS in particular.
EDITOR'S (@toggledbits) NOTE: This post was made in this thread: How To: Send TCP packet in Reaction
To my good friend @LibraSun , SHAME! This is a textbook example of thread-jacking: question/post in a topic that has nothing to do with the OP's topic/title, starting a second thread of discussion within that topic. Bad dog! No treats for you!
And yes, to the best of my knowledge, I'm getting all your DMs. I don't see any on this subject. -
@librasun said in How To: Send TCP packet in Reaction:
Did MSR running on Docker ever gain the ability to do the R4V import?
Yes, question mark?.?.?. I migrated my R4V into MSR and I'm running on a docker within my unRAID server. There were little hiccups and import issues that have since been fixed. But I successfully took my R4V backup file and imported it in. Probably back in late August.
-
@3rdstng said in How To: Send TCP packet in Reaction:
took my R4V backup file and imported it in
I would have loved to do the same, but with Docker running on a Synology NAS, I recall there being some [command line or required packages] limitation that made the import impossible.
That's why I laboriously re-created all of my old R4V reactions, which turned out to be the best way to learn Reactor for me!!
I was just eager to hear that [uncertain] limitation had been circumvented during the intervening year or so.
-
toggledbitswrote on Nov 6, 2021, 2:37 PM last edited by toggledbits Nov 6, 2021, 11:03 AM
Here's a way to do it, with credit to @whyfseeguy for the approach.
It's always a good idea to back up your Reactor data directory before doing anything like this.
You can start a shell running in the Reactor docker container, and run the importer from inside the container:
-
Copy your Reactor for Vera backup file into your Reactor (MSR) data directory. This is the directory you have mapped to the container's
/var/reactor
when setting MSR up (it's the parent of yourstorage
andconfig
directories. -
Make sure your Reactor docker container is running.
-
Open a shell in the Reactor container. This must be done from the system command line:
docker exec -it reactor /bin/sh
-
Now change directory to the container's Reactor directory:
cd /opt/reactor
-
Create a symbolic link:
ln -sf /var/reactor/storage .
-
Now run the importer:
node tools/import_reactor_backup.js /var/reactor/<name of your backup file> <controller-id>
In the above command, the
<controller-id>
is the ID assigned to the VeraController in yourreactor.yaml
configuration file. The distribution default version of this file includes a sample configuration with the IDvera
, so it should be easy to find and confirm. -
Exit the container's shell with the simple command:
exit
If anything goes horribly wrong (i.e. you get a hard error), let me know and I'll try to help you fix it. Also, for anyone who finds this procedure altogether too daunting, I'm happy to run the import for you and send you a ZIP file — contact me via DM for this request.
-
-
I feel I ought to know what
<controller-id>
comes from, in the instructions above, but nothing pops into my head. -
I'll amend that.
<controller-id>
is the ID you gave the controller in yourreactor.yaml
file. The distribution default version of the file includes one with the IDvera
, and I don't think most people would ever change it (they certainly must if they are adding multiple Veras to their configuration — each must have a unique ID). -
@toggledbits can’t resist saying that for most of us even a single Vera is too much
-
toggledbitswrote on Nov 6, 2021, 10:51 PM last edited by toggledbits Nov 6, 2021, 6:51 PM
Just wait until you have a house full of little eZLO trinkets, as one big mes
sh... -
-
I retired one of my two VeraPlus units. It was satisfying to press the reset button 6 times to factory reset it. Does anyone want it? I wouldn't expect to get very much for it on eBay, so you cover the shipping costs and it's yours.
-
There is (edit: WAS) a guy on the ezlo Forums who said he was looking for a Vera unit to replace his Plus. I'll drum up the link to his post: Nope, it vanished, along with the Message I sent him on that Forum. Wonder if he got booted for talking about equipment failure, lol.
-
@buxton said in Import Vera Rules in Docker Containers?:
@3rdstng Ha! if you're in the US, I'll take it. I still have a veralite running in my garage that could do with an upgrade.
I am in So Cal. I'll DM you.
-
-
6/12