I recently decided to start with Home Assistant due to some ideas I was having that proved problematic with SmartThings.
My SmartThings setup includes webCoRE programming so there are some relatively complex interactions that I’ve coded over there and I wanted to duplicate them one at a time using Node-Red. (I know I can use native Automations, but I really like the visual approach that Node-Red takes.)
In addition to SmartThings, I was using Action Tiles to have a control-panel approach to non-automated interactions and to show status.
My garage door setup was always hinky. I had a Chamberlain lifter and added on a kludge that used a GoControl automator. SmartThings has a GoControl integration, but the Chamberlain door doesn’t use a straight switch to open and close it. It sends a coded signal so I had to rig the GoControl unit’s relay to the button of a remote that was paired with the door lifter. (I didn’t wire it in directly to the in-garage panel because a remote was a lot less expensive than a new panel.) This worked, but it looked like ceiling wax and baling wire.
Then we come to my Wyze cameras. I was using the RSTP firmware from Wyze and then pulling the results into BlueIris, running on an always-on PC, in order to get images I could pull up in Action Tiles. It works, but every time the PC reboots, it has to load BlueIris again and, because of my Cable-Modem to SmartThings WiFi hubs setup, I also needed to run ngrok to set up a connection that could send those camera streams to the outside world. (It does one little good to be able to look at camera images only when you’re home ) Even with all this, I still had to use a separate app to see my Ring cameras.
(Those of you still reading this are probably amazed that all this actually worked. So was I. It’s probably a testament to my stubborn streak.)
I decided to leave all the devices that were connected through SmartThings still connected that way, so I’m using the SmartThings integration to work with them in Home Assistant. I may eventually start to switch them over. But it works well enough now. I actually prefer the Lovelace interface to SmartThings and even to Action Tiles.
I opted to pay for Nabu Casa because it works just fine through my Cable-Modem/ST Wifi Hub set up.
I’m currently running the whole thing on a Raspberry PI 3B. My intention is to migrate it to a PI4 booting from an SSD as soon as I can get those parts and spare the time. I’m using a straight HassOS (4.15) installation. I’ve looked at the options to run off a virtual machine on a PC and even running inside of Docker. Maybe later.
So… after burning the image to an SD card and starting up my PI3, I installed a File editor, FTP, Node-RED, and Mosquitto broker (for later). I added in integrations for AccuWeather, the Mobile App, MQTT, ring, and of course SmartThings. Then I added in the myQ integration because, lo and behold, HA actually supports it and it doesn’t require the subscription that IFTTT does. HA recognized the myQ unit and I was good-to-go on door control.
On to the cameras. I could have stuck with the Wyze RTSP firmware, but there was another option: Dafang is the source of the Wyze (and Neos) camera hardware, but they have a custom firmware setup that not only does RTSP, but also has a lot of options superior to Wyze’s firmware. There’s a link below that shows how to install it in your Wyze/Neos cameras. Once flashed over, I was able to easily add the cameras into HA, but I found that the video feed just didn’t work. Fortunately, there’s an option for still images that shows single frames on movement. That works very well for me. Here’s an example of the camera definition:
- platform: generic
name: LivingRoomCam
username: "i'm not going to tell you"
password: "i'm not going to tell you this either"
authentication: basic
still_image_url: "https://192.168.40.177/cgi-bin/currentpic.cgi"
# stream_source: "rtsp://192.168.40.177:8554/unicast"
framerate: 5
verify_ssl: false
scan_interval: 5
Adding in the ring cameras (both a ring flood-light cam and a doorbell cam) was automatic upon adding their integration. I was pleased with the results, but I may play with it a bit to take up less space on Lovelace (they have all the controls, including being able to turn the spot-light on and off.)
Custom Dafang firmware for Wyze/Neos Cameras:
That’s it for this post. I’ll come back and do the Overhead garage door and presence sensing next.