Hey,
I’m curating a list of smart home automation ideas, and here are 15+ ones (and still counting).
What do you think?
smart home automation ideas.png
..................................
The smart home trend is dramatically evolving with at least 69% households in US owing at least one smart device.
So how could they ease your work and life?
I gathered and asked 15+ smart home professionals a same question:
“What’s your most favorite automation (ideas) for smart homes that is improving your life?”
Let’s check their ideas:
(source: https//www.leadsrating.com/security-cameras/smart-home-automation-ideas/)
Routine Checking Smart Curtain and Blinds Smart Interaction Smart LED String Lights Turn Outdoor Water On/Off Automation NFC Tags Automation Remote Control and Scenes Smart Interoperability Reducing Your Home Cleaning Job Light Control Automation Smart Blinds Light Management Adjusting Natural Light Automation Seamless Connectivity Simple Switch Bot Changing My Overall Everyday ProcessThe promise of "all available devices will be supported" gave me hope for including more Zigbee devices into to my home as Vera was not a good option for Zigbee devices.
Despite the support for new devices is extremely slow, the implementation of Zigbee has a lot to wish for and it seems a low priority at Ezlo I managed to include 22 of my 23 Zigbee devices as generic. But after 2 years of devices still missing attributes and randomly/every controller reboot loosing connection to the controller and had to be power cycled to connect again, and some even dropping off the network completely without any reason, I decided to give up.
The positive outcome of all this:
I bought a Sonoff Zigbee 3.0 USB Dongle Plus and installed Zigbee2MQTT and never been happier.
Suddenly the pairing were no pain and took a few seconds per device, all my devices were recognized, all capabilities of the devices were exposed and it never misses a signal to/from a device ever.
I'm surprised how stable and configurable my new setup is. I can set device parameters, offsets, send messages handled by the bulbs them self like effects, broadcast for groups, transition time for power on/off. I can handle debounce for MQTT messages, do OTA firmware update on devices and much more! Most of this is probably standard for the common branded hubs like Hue etc but I never had one so this is new to me.
A big plus for me is the MQTT part of Zigbee2MQTT as I'm migrating as much as possible to MQTT.
My Ezlo Plus is now serving as a modified WiFi access point to my network and only have the VistaCam 1203 Doorbell still connected for evaluation. Time will tell if I ever move my Z-wave devices to it.
Conclusion:
I could really recommend both the Sonoff 3.0 USB Dongle Plus and Zigbee2MQTT to anyone going the same path!
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.png
I 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
...but I now only have house mode scenes left on Vera. All other automation is by Reactor and Switchboard / Alexa routines.
WAF may be low tomorrow if it doesn't work 😄
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.jpg
Inside 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.jpg
That's an uncomplete setup in the kitchen for screen #2, need to finish the "wood" part!
IMG_20200428_110846.jpg
That'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 And now to HASS - PerH
-
I finally made the Domoticz link work, and then ported all Zigbee devices to the much better zigate plugin there. No change in latency at all, very sharp responses to door and motion sensors. Happy!
This plugin has its own GUI, and is almost structurally standalone. I've contacted the developers to ask if its possible with a direct API and to run it as a service to cut domoticz out of the chain..
I can now confirm that TRADFRI and Aqara will work together just fine, with repeaters helping for both systems:
-
I have to applaud your resilience in finding yet a novel integration of zigbee into openLuup. I looked at it a while ago for just a few minutes before giving up with the thought that the plugin was broken and moved on to something else.
In many ways I envy your integration. I came to realize that I had mentally split my setup into 2 major controller categories:
The local, z-wave and zigbee which needed to be stable, fast and 100% reliable, almost never requiring any updates.
The cloud side which I tried to minimize to the very essential and would constantly require updates due to cloud APIs changing.
I partially failed by running my zigbee on home assistant which also is my cloud integration portal and is constantly getting updates. You just did exactly what I wanted to do... -
@therealdb: Yes, it would definately require some writing on the plugin, but then it would also open for more users.. we'll see!
There is some really good plugins and features in Domoticz as well, so its OK even if the plugin stays attached to it, as long as the performance stays good. Next plugin for me to install now is the Xiaomi Vacuum.
-
Finally starting to get the docker thing here, and currently i've got z-way 3.1.3, domoticz and miio-server (for the vacuum) running in dockers. Nice to se that there's no performance reduction with this either. I'd also like to get grafana and influxdb into dockers.
Plan now is to have some daily backup routine. I was thinking mabye just to have Reactor do
os.execute cp -rf <docker volume folder> <backup folder on SSD>
sometime at night. Any thoughts? -
Per, how are you planning to handle daemonizing? I've been playing with docker-compose, which seems a good way to remove the need to have a command line with a lot of error-prone parameters that users must type.
-
Yes, i've made a docker-compose file that brings up all the dockers and set them up on the same internal bridge network with static IP's. Then all intercom is done with the same IP's on any hardware, so theres not much to set up other than copying in the volume backups.
Daemonizing was a new word for me, in this context you were referring to automating the install, right?
-
By "daemonizing" I mean starting them as a daemon, which is in Unix parlance a console-less process that runs in the background (a service, if you will).
-
The closest I have come to this has been running them as systemctl services. My single VM actually runs everything that way. I did so for MSR as well but no docker for me. You can put all of these command within the service file? I am actually autostarting all of my services in a sequence with dependencies: example: Do a socat reload before starting z-way. Then when z-way is up start openluup then start habridge then start homekitbridge... etc...
-
Well, as long as you state restart policy "restart: always" or "restart: unless stopped" in the docker-compose file, it will start that container on reboot as long as the docker daemon itself starts.. docker installed itself as a service, so i haven't thought about it really.
Just to have it said; the docker-compose is just a script to rig up the containers with the correct settings. This is done once, after that the restart policy you set for the containers decides how they will live from there. you can set up as many containers as you like in one compose file.
-
I finally reached the finishline for the move-to-docker project!
All applications are now inside dockers, communicating on the internal docker network.This makes updates easy - just update to a newer docker image. (or update in the app, in the openLuup case)
Backup is done by copying the docker volumes to an SSD along with the indluxDB.
Restore to any machine running docker is in principle just attaching the USB devices - install ser2net, and running one docker-compose file. Everything is set up and ready to go. Tested on an Ubuntu installed machine, and it works!
This will offcourse take a bit more disk-space, havent summed it up yet.. But i have no plans on running this on machines with tiny storage anyway.
One thing i'd like to improve is to get the UZB into Ser2net as well, with the advantage of accessing it from my test-system as well. Z-Way unfortunately can't take IP-serial without Socat? mabye in later updates.
I made this sketch to keep track of the system in progress, it might be usefull to others?
-
I found my info here, and lookung at other docker-compose files. I've only set up a standard "bridge" network, theres more advanced methods available as well. I found that giving the containers static IP worked for me.
You can do that in a run command, in compose or manually in portainer (but that will be gone in a reset of the setup). I'd recommend docker-compose! -
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