New home for Miscellaneous Tech Projects/Procedures
We'll see how these shakeout ... I suspect there will be some reorganization and categorization of topics (e.g. smarthome, privacy) as worthwhile articles are salvaged from ventures.tpedersen.net.
In the meantime, we'll try expandable blocks of Notes to Self on this page to see how new Google Sites works for this.
The notes on this page will likely be very random and may well be incomplete or a total mess!
Putting Raspberry Pi Monitor to Sleep (DPMS) [done]
Fix for a longstanding Raspberry Pi annoyance: Getting the monitor into powersave mode after a period of idle time - turning off the backlight.
Here's a quick tweak that seems to work fine on native HDMI and VGA (via adapter*) monitors. Hopefully helpful to others.
Background: I've played with Linux Power Management commands, utilities, screen savers and such in attempts to get Pi's to turn off (standby) monitors when idle. I recently hit upon a couple of Raspberry Pi config option that seems to do the trick - not really sure when/where it appeared, but it does switch off the HDMI when Display Power Management (DPMS) is triggered, as opposed to simply blanking the screen. Works on Raspbian Stretch & Buster and recently on RaspOS
Fall 2021 Update: In spite of a recent Buster Update ... I STILL manually adjust /boot/config.txt & /boot/cmdline.txt to get HDMI into standby mode. Works on RPI 4 too!
Oct 2018 Step-by-step (Original Post)
The fix involves editing a couple of key configuration files - as always remember to make a backup copies before type-o'ing in these files!
Use sudo to edit files in boot partition *and* be careful!
Edit /boot/config.txt (RPi's main System Config File)
Add the following line to force HDMI output to switched off when DPMS is triggered. This config option was not explicitly defined in my Raspbian (Stretch) config.txt - apparently defaults to 0/off.
I added this line below hdmi_mode in config.txt, but it probably doesn't matter.
See complete details in https://www.raspberrypi.org/documentation/configuration/config-txt/video.md. There are some notes/considerations.
Make sure Screen Savers are installed/configured to take advantage of hdmi_blanking.
For Console Mode (no Desktop UI) set console blanking ...
Check current setting of consoleblank kernel parameter, it sets the inactivity time. It defaults to zero (returns 0)
Edit (sudo) /boot/cmdline.txt to set time in seconds to turn off monitor when Pi is in console mode.
Carefully add the string "consoleblank=<numsec>" to /boot/cmdline.txt - MUST be a single line text file like this:
For Desktop GUI set Display Power Management (DPMS) via screensaver or power manager applications - you may need to install these.
Install Power Manager:
See RPI Screensaver doc @ https://www.raspberrypi.org/documentation/configuration/screensaver.md for complete details.
Reboot and check your work!
As they say in IT - Works for me! Hope it works for others too.
Couple of random notes:
There are some very interesting BIOS-like options in RPi config.txt file. Also a nice write-up @ https://www.raspberrypi.org/documentation/configuration/config-txt/
An FYI from http://saf.bio.caltech.edu/saving_power.html: "...for an LCD display there is often no difference between standby, suspend, and off"
Garmin eTrex 10: How to Add Coordinates to Compass Display [done]
Migrate from Smartthings V1 hub to Aerotec [done]
We will see how this all works out: Samsung/Smartthings sent an email offer to get an Aeotec hub for $35. Appears that ST is getting out of the hardware biz? Anyhoo, our ST hub is pretty old, v1 from 2014 or ..... so .... I bought the new hub. Will attempt to keep ST devices going for a few more years - looks easier than making a zigbee/z-wave gizmo out of a Raspberry Pi! This chatter may become a page of its own ...
Objective: Migrate ST V1 home hub and devices to Aeotec
Aeotech Smartthings area - https://aeotec.com/smartthings/
Aeotech Smart Home Hub Setup - https://aeotec.freshdesk.com/support/solutions/articles/6000240326
AND ... The kick in the pants to get this going: Our SmartThings Hub (2013) will stop working on June 30, 2021!
ST Forums @ community.smartthings.com (Note: ST is, indeed, a POS - it always has been. This forum is fun, lots of whining)
Migrating to Aeotec - https://community.smartthings.com/t/migrating-to-aeotec/211876
Official Update Regarding Hardware - https://community.smartthings.com/t/an-update-regarding-our-hardware/208259
Step by Step (apparently no migration tool for ST Hub V1 to Aeotech .... soooo hereeeee weeee goooo)
Inventory: In our case, we have Smartthings AND Homebridge (see homepi project). We use ST for some automation & remote access. but native homekit (Apple Ios) around the house ... e.g. - "Hey Siri, turn on the light"
The Smartthings Mobile App has always been total junk ... no config print or download/restore. I guess we make record (by hand) of config
I snapped a iPad screenshot of the stuff in the menu bar - this will be a MAJOR prob for large configurations:
Rooms, Devices, Scenes, Automations, SmartApps & mainscreen to show which devices were in which rooms! Yeeesh!
Main Screen to show which devices were in which rooms!
Via the ST Developer Site (https://graph.api.smartthings.com/) ...
Simplify: In our case (destined for apple homekit), reduce the number of devices that are directly controlled by ST hub.
Some Hue Bulbs were paired directly with the ST hub, these were reset and moved back to the Hue hub where they belonged!
Smartthings is a friggin rats-nest! We moved EVERY device that we could AND automations to homekit.
Luckily, we had our HomePi: Homebridge running on a Raspberry Pi
Connect all non-compliant devices to homebridge.io
Hue v1 hub: https://github.com/ebaauw/homebridge-hue#readme
Turn new Smartthings hub into a simple zigbee & z-wave hub/controller:
Reset any Homekit Compliant devices and connect directly to Home app
In our case - isolated IoT subnet - it was important to have ios device connected to target WiFi network
Apple Accessory info @ https://support.apple.com/en-us/HT204893
WiFi devices: I found "Set up New Device" in Settings/Wi-Fi an easy route for WiFi-only devices
Resubnet: Yeeesh! HomePod pretty much requires iOS devices on the same subnet as HomePod and all those creepy IoT thingies!
Managed to keep our main systems w/ data isolated - Mac's, PC's, Linux & MIPi, of course
Had to move HomePi to 'Things' subnet
MoviePi: Fix YouTube Kodi App [incomplete]
Background: YouTube Add-on on Kodi stopped working in past year or so. I simply stopped using it on my parent's MoviePi. Created another MoviePi for our house and YouTube seemed to work fine ... FOR A WHILE. I'll be back to figure this out and clean this up
This guide walked me thru Google API Key - https://www.videoconverterfactory.com/kodi/youtube-api-key.html
More on YouTube Add-On here - https://koditips.com/setup-use-youtube-kodi-addon/
Web Interface - https://www.comparitech.com/kodi/kodi-web-interface/
Duplicate LIFX Bulbs in Homekit [solved]
Another cleanup item
The Problem: One of our LIFX (wifi) bulbs appears to have paired with Smarttings AND Homekit. Shows up twice in home app.
This was easily fixed when I moved from the Smartthing Hub to Aerotec - THERE WAS NO MIGRATION TOOL! I simply reset the LIFX bulbs and now use native HomeKit (Apple), never moved them back to Smartthings! See below ... we now now using Smarthings for as little as possible ... in our home, only to control original Smartthings devices (Centralite Zigbee) or Z-Wave.
Factory Reset article here - https://support.lifx.com/hardware-resetting-your-lifx-ryXKbdiLO
Hue V1 Bulb Factory Reset [solved]
The Big Issue: Our "Smarthome" is getting outdated. Hubs and devices purchased during the dawn of IoT are slowly being dropped from support
Little Issue: We have a lone v1 Hue Light bulb that was paired directly to a v1 Smartthings hub. I needed to factory reset it and move to the Hue Hub in an attempt to get a few more years out of it. Here's my How-to-collection and hopefully a procedure that works
Circa 2017 (some broken links):
Using Bulb Serial number and Hue App - MUCH Easier! https://www.howtogeek.com/247801/how-to-troubleshoot-your-philips-hue-lights/
This last one worked! Simple! Bulb operates fine via Hue app so I deleted the ST bulb! Too Easy!
In Hue App: Room Setup, add bulb to desired room - sos you can see it!
in Smartthings App: Delete the old/original bulb. It will still show in app after the move, but ST can't control it
Easier than the last time I tried this ... BUT ...
ST "Smart Lighting" app is now gooffed upped! When I try to adjust ANY Automations in the Smart Lighting App - I see "Something Went wrong. Please try to reinstall the SmartApp again" ... which is a pain in the arse because we have all sorts of complicated lighting automations that were really hard to define on the stupid ST app in the first place.
Ack! Rebooted the hub, reset all IOS ST apps, still the same ... will have to hand-record all automations and delete, re-add the "Smart Lighting App"(This is going to turn out bad, I just know it!) . The topic is on fire on the ST support board @ https://community.smartthings.com/t/help-smart-lighting-app-issue-with-error-something-went-wrong-please-try-to-install-the-smartapp-again. I put a watch on it and filled my email inbox!
I basically recreated all of the Smart Lighting App rules using the 'Automations' feature on the new ST app. Really wasn't that bad to do. I'll bet the ST folk are trying to get others to use this feature and get rid of the smart apps. They should just say something on the forum!
Homebridge Cameras [incomplete]
Ghads Zooks - 20 options?! https://www.npmjs.com/search?q=keywords%3Ahomebridge%20camera
Urls used to interface w/ DLink cams @ http://forums.dlink.com/index.php?topic=57131.0
Handy RTSP Directory @ https://security.world/rtsp/