-
So cool to find the forum of all the banned vera gurus!
I've had a Vera Plus for about 6 years now, and have had a fairly problem free time with it compared to many other stories. The last years have however been lacking in progression in many fields i'd like to explore, so now i'm looking closely at Openluup.
Other systems have been tested as well, but i find that the community and plugins made for vera is kind of special, and something i'd like to contribute to as well. (getting older and not wanting to change to new stuff probably plays a part too!)So, my stab at opeluup starts with an HP Chromebox 1 i got for free. Its a fairly powerfull thing, but as google wants to sell new ones, its now EOL.
I wiped it clean and installed debian, as it seems to be the closest thing to raspberry which many use for openluup.Openluup installed fine, and i got the vera bridge working fairly well by bothering ppl at the vera forum with questions. Its now running OK, but there seems to be an issue with Icons?
f0e29622-0397-4b84-819c-f1b632daab41-image.png
Also at the devices tab:
2892faff-a3ee-4f21-9db8-2a03f604fc74-image.pngI did the "GetFiles", and I see the /icons/ is populated, but no icons. In the luup log says that its trying to GET the icon, but returns no packages.
2020-09-15 17:04:30.818 openLuup.server:: GET /cmh/skins/default/img/devices/device_states/dimmable_light_off.png HTTP/1.1 tcp{client}: 0x55eca8d90cb8 2020-09-15 17:04:30.819 openLuup.server:: request completed (0 bytes, 0 chunks, 0 ms) tcp{client}: 0x55eca8d90cb8I do have a UZB stick on the way, but before i go down that road i'd like to be sure that the installation is stable and sound.. Do I have all the nessecary packages/background processes? I did install cjson which helped on some things..
Also fairly new at linux in general, so bear with me. 😉
Roadmap:
Get the openluup/AltUI running smoothly
Transfer Z-wave devices
Transfer 433 devices (RFXtrx plugin)
Transfer Zigbee devices (Vera or mabye ezlo plus? zigbee stick?)more questions will follow!
-
In a quest to further stabilize my Vera before I'll move to Z-Way+openLuup or something else later this year (I'm tempted to go the Home Assistant route, since all my friends are here, apparently), I've spent a couple of days removing HTTP calls from the system and I'm now fully using the UDP sender @akbooer has written in the past, to push all variables (and custom events/request as well) to my MQTT broker, then to some code doing the actual work.
Responsiveness seems to be at its maximum now, and stability has improved. There's still a lot of code locally on my Vera, but it's mainly doing variables comparison/scenes, while all notifications and heavy logic are now running in my linux box.
So, maybe, not insisting on the sockets and just use the same UDP server is the way to go for me.
-
-
Well here we go. A slow, considered migration from Vera to something (I hope) more reliable.
Hopefully we'll end up with a decent documented process for people as right now I'm still not quite clear 🙂
Starting point:
I have a 'mature' Mios set up running on an extrooted Vera Plus with roughly 100 devices, both physical and virtual
Integration with Alexa both voice control and TTS
iPhones for Geolocation
Volumio devices for music playing around the house.
I have no user defined scenes, all automation is run from Reactor.My impetus is final dissatisfaction with the quality of UI7 software delivery and operational rigour (for full disclosure I am a senior IT Operations leader with circa 20 years experience delivering properly stable systems, so I probably have un-realistic expectations 😄 )
So initial steps:
Raspberry Pi 3 B+ (I think this is my 5, and 6th Pi in total. I may have a problem) Raspbian OpenLuup VerabridgeThat I think is stage 1
C
-
-
I am a Electrician. I installed hundreds of smart devices for others prior to having my own home automation. In 2013 I bought a new house and decided to make it smart. I did some homework and settled on Z-wave and VeraPlus.
My installation comprises of
25 Z-wave dimmer/switch inserts
3 Z-wave door sensors
10 sonoff devices(basics,TH16 and Mini) ,
4 Tuya(lamps and RGB strips) ,
6 shellys(connected to motion sensors and 2 controlling dead DIY bolts )
3 Amazon Dots(gen2)
2 Broadlink (RMPro's)
4 DIY RF Venetian Blinds
2 Multi button DIY remotes
1 NVR
1 Network drive/Media server/ftp server.
1 smart thermostat heating and hot water
4 wired 240v/battery Aico smoke and heat detectors (connect to zwave via Relays)
1 robot hover.
1 Siren
Node-red server running on android.
Testing openluup on android.
Automate App running on andorid Boxes/phones.
All tv's are connected to android boxes.
No windows PC.
Debian running on android box.
Plugins Reactor, AlexaTTS, Switchboard and Virtual HTTP Switch.I can control all of my devices from anyone of these platforms Vera/OpenLuup, Node-red, Automate(phone/tv box) or Alexa.
All devices have a standard/manual switch for anyone to control, and can be controlled even if my VeraPlus stopped working or internet out. My system is stable and may get a luup reload every couple of weeks.None of my sonoff's or tuya have been flashed. I found Shelly very late into game and will be using these more now i found them, as they offer local control.
I have some coding knowledge from the 90's, but have never worked in the industry.
-
Well, if I see further, it's because I stand of the shoulders of giants. I've got where I got because of the experts here. I started about 15 years ago with some really basic X10 stuff. When we moved in 2011 for some reason it simply would not work in the new house, so z-wave was the thing. Vera lite then Vera Plus.
I'm a child of the 70s. I want the car on the drive to be KITT and my lounge a cross between the bridge of the enterprise and the Lars farm on Tattoine.
Not there yet, but with about 250 devices (virtual and real) things are fun (when they work!)
The absolute killer app for me is Alexa bi directional speech. To the extent that I've walked into hotel rooms and said 'Alexa turn the lights on....'
I'm within a spit of never buying another control and doing everything via Alexa and Reactor (had to drop that in)So that's pretty much me.
C
-
Let start maybe something useful for others. Maybe it will give you some idea!
Here's a summary of my setup!
I'm having :
VM#1 that runs openLuup VM#2 that runs Zway 1x raspberry that I use to connect the RaZberry board using socat/ser2net to send "raw data" to the VM#2, this setup allow me to have all my stuff in the data center in the basement while having my zwave antenna on the first floor and send back the data! A couple of pine64 and raspberry around the house, most of the pine64 are use for "smart display" around the house that show data from various source (will post picture later). I have also a raspberry that I used for openSprinkler in the "Shed" Each room in the house + Garage + on the patio is having a SONOS speaker that I use for music of course but that I use with the TTS to send some notification around the house based on the presence!For example, I can welcome people on the front door based on motion detection + IP camera motion!
I decided a long time ago that all "sensors" will be handle by the DSC alarm. Currently I'm having over 40 sensors in/out divided in 5 partition (main/2nd floor, basement, office and shed and a partition for non-alarm sensor)I connected my DSC using the DSC plugin from Vera to handle all that traffic that of course is send to openLuup!
On the zwave network, I would say that I'm having every room in/out done!
I'm using also this setup to welcome kids in the morning based on motion detection in each room and I have some time-based reminder using TTS mostly for the kids.
We also "named/called" our Home, SARAH, based on the TV Show Eureka that means "Self Actuated Residential Automated Habitat".
** openLuup handle ALL the logic, I have no scene and logic in Vera and Smarthome/Zway
More to come...
That's our main screen in the center of the house!
IMG_20200428_110740.jpgInside the main screen, I'm having a bunch of stuff, like 2 Veraplus, and a RaZberry and of course a pine64 for the screen!
IMG_20200428_110755.jpgThat's an uncomplete setup in the kitchen for screen #2, need to finish the "wood" part!
IMG_20200428_110846.jpgThat's the touch screen monitor in the basement, so kids can use the Sonos app to play some music in the basement! The wood part is done, need to finish some "paint"!
IMG_20200428_110824.jpg
Another transition from Vera to OpenLuup - PerH
-
I am using using my UZB over IP. You do need ser2net on the UZB host but you can then get anything, including socat, to pick up the socket.
-
But Z-Way needs an address to a device right? haven't looked into it.. tried to put in ip:port, didnt work..
-
Ohh I see what you mean... if using z-way then yeah I don't think it has direct socket access so you will need socat to move back from IP to a serial port.
-
I left the system completely alone for a few weeks now, and as mentioned here, my disk filled up. A lot of strange things happens when there is no disk space, so i was suprised that it actually ran for the most part at all.
MSR started doing some - but not all tasks, seemed like it was when the que of actions was longer than a certain number, things got ignored. It may offcourse have been domoticz, openluup or z-way that didn't do its job, can't say for sure..One lesson is - don't try to set up a container if there's not space for it! I tried installing the latest MSR while the disk was full, and ended up with corrupt files in persistent storage. I fortunately had a backup, so i'm up and running again.
One thing I'd like to have is a message if available disk space is under a certain level, any tips on how i can get MSR/openLuup to detect and alert me ? If there's a way to use the response from "df -h", mabye i could send a telegram msg from reactor?
-
You can get a piped response from any process you launch. I used to use df to check for mounted volumes.
See: https://www.lua.org/manual/5.1/manual.html#pdf-io.popen
-
@perh this is the code I'm using to check for space on my Vera. Feel free to change it
local function getDiskSpace(path) local function df() local format = "(%S+)%s+(%d+)%s+(%d+)%s+(%d+)[^/]+(/%S+)" local d = {} local p = io.popen "df" if p then local df = p:read "*a" p:close() local n = tonumber for f, b, u, a, m in df:gmatch(format) do d[#d + 1] = {file = f, blocks = n(b), used = n(u), available = n(a), mounted = m} end end return d end local dfinfo = {} for _, d in ipairs(df()) do dfinfo[d.mounted] = d end local x = dfinfo[path] return { total = x.available + x.used, available = x.available, percentage = (x.available /(x.available + x.used) * 100) } end local disk = getDiskSpace('/overlay') -- customize with what you want to monitor luup.log("Total: " .. tostring(disk.total)) luup.log("Available: " .. tostring(disk.available)) luup.log("Percentage: " .. tostring(disk.percentage)) if (disk.percentage < 30) then -- alert under 30% sendAlert("Overlay Partition at " .. tostring(round(d, 2)) .. "%") end
-
Nice, thanks.
What would be the fastest way to get that percentage value into a reactor that sends me a text?
I think i can wrap it into a plugin, mabye even hack it into the existing system monitor plugin?
If there's an even faster way to do it, chime in! -
@perh said in Another transition from Vera to OpenLuup - PerH:
I think i can wrap it into a plugin, mabye even hack it into the existing system monitor plugin?
I've already done it in my own fork. The license around this plug-in is obscure, so I didn't wanted to mess with it publicly.
-
Just updated Z-Way to 3.2.1 today.
I had to build a new docker image for this, and pull down the container and replace it with the new image. All was done in about 10 minutes, and works well.System-Down time was about 10 seconds..
Setting up the docker system was a little work, but it is really easy to maintain once its up.Here's the docker image, there is a docker compose example in the description.
There is some interesting updates in this version, MQTT client is one that may be interesting for openLuup users?
Several fixes to z-wave communications as well, so it may be even more responsive now. we'll see! -
@perh said in Another transition from Vera to OpenLuup - PerH:
in this version, MQTT client is one that may be interesting for openLuup users?
Definitely. I couldn't find a documentation about that feature, but it's doable and this could be easily directly supported under MSR as well (paging @toggledbits & @akbooer)
EDIT: here's the source code of the module https://github.com/Z-Wave-Me/home-automation/blob/develop/modules/MQTTClient/index.js