I have a question regarding A/C lighting for IoT just basically where to go for the information/parts I need.
I want to control the lighting in my bedroom/bathroom via IoT devices that will act as a dimmer.
I'll probably write my own small Django/Python server to control them via JSON Web API using JWT from my Raspberry Pi 3. They'll need to communicate with the light switches through some means like WiFi as the RPI3 is set up next to the TV, so I'll put whatever microcontroller board into the physical walls and route power to them (I'm not a hardware engineer so getting mains electricity behind the wall and converting it down to 5V DC is a little beyond my skillset at the moment).
In the bathroom there are 4 incandescent vanity lights, I have them controlled by manual dimmer right now. In the bedroom I have 3 incandescent lights in the ceiling fan, ceiling fan is not dimmable. The electrician who wired them did not use a neutral wire. I'd like to stay with incandescent lighting for the main lights for reasons outlined here:
https://www.scientificamerican.com/article/led-lightbulb-concerns/
I only use my Smart-Link LB130 LEDs for auxiliary lighting, they'll be using my RPI3's access point as soon as I get that set up and then controlled via Web API.
I'd prefer not to use a store bought solution for a variety of reasons.
A) Smart Hubs are ridiculously overpriced and unnecessary, and there's too much "magic" going on behind the scenes from a software perspective, not to mention highly insecure if a company produces write papers that reveal their internal radio communications protocols, which on an Insteon dimmer I bought a while back they did.
B) These lights were not wired for neutral, and most of the store bought solutions require that. It looks like there is a neutral wire behind the wall, but I'm not sure if I need to do anything more than just hook it up.
C) I'd like to create my own custom security encryption scheme and protocol for communication with the lights rather than vendor-provided, which, if my UDP-based LB130s that I reverse engineered are any indication, need a lot of improvement from a software perspective.
I'm still learning the ropes with hardware though, only have done some basic DC wiring and soldering yet.
Any ideas on how to dim A/C lighting from a microcontroller board like a TI Launchpad (I've got a MSP530F5529LP I'm playing around with, also got a Teensy I haven't touched yet) and get power to the MCU from behind the wall?