I needed a light sensor in my living room as I can’t trust the sunset data, things get dark well before the sun sets.
Because trees.
I looked into light sensors but quickly realized I already had one, and it was already installed and at the right spot. You see, I have an old nexus 7 tablet mounted to the wall in the living room, and it displays a HADashboard screen with some senor data and switches for light, etc. The tablet has a light sensor and when looking at the android dev docs I saw it reported it’s values in Lux, that’s exactly what I need!
About an hour later I had a proof of concept running as a service on the tablet, reporting the amount of light in the living room. I used a simple rest sensor that performed an http get on the tablet and with a simple automation in HA I had a lighting setup that was aware of the actual light coming trough the windows.
A week later I got a ring.com doorbell and I successfully hooked it up to HA. Unfortunately the existing wiring for the actual chime did not work, we’ll need some rewiring. However, I added a method to my android app that allows it to play a locally stored audio file and with a simple automation monitoring the binary sensor of the ding on the ring I had a chime.
A bit later I started to use the other binary sensor ‘motion’ to play a star trek proximity warning
After some time I wanted to keep an eye on the cleaners after an incident and I got into the camera2 api on android and added a mjpeg streaming video server to the app.
Then I wanted to monitor the volume, after that the battery level, after that it annoyed me that the screen was too bright in the evening and way too dim during the day so I added a way to change the brightness and once again hooked it all up with HA. Some time later I decided that the volume level for playback should be configurable trough HA as well. I added that. Then I wanted to use text to speech for some custom reporting but my chromecast isn’t always on, … so yeah, I added that as well.
Now I’ve polished it a bit and released this app on Google play, it’s over here
Costs about half a sandwich to own it.
I’m giving 5 licenses away for it, please giving me some feedback here as I don’t have a many devices to test it on.
I’ve also created some homeassistant components, wallallsensor, wallalltts and wallallcamera. You can find them in my homeassistant fork. I’ve quickly cobbled those togheter, they’re in need of some serious tlc but haven’t got the time yet to polish them.
anyways, here are the codes, enjoy.
D5JDSYBUN8HV7PUB2EYFNSC
RX1VUS3QD8YBRG1R1316NMD
FQDBXJR0FYVY8PWWCH5UVDH
0JECFR67N0TTB115RHXKKXM
517D7Y3YY3EC7K8GEGF83TE