After fighting with Z-Wave multisensors for a while, I finally gave in and built my own WiFi based solution. The first iteration is just a PIR motion sensor with indicator LEDs and a speaker, but I am working on revision 2 with more features such as gesture based dimming, and temperature sensors.
Excellent! I was planning to do the same but also include a temp sensor (prob a DHT22) and a photoresistor to tell the light level in the room.
I have many questions
Do you have a part number for the speaker?
How did you breakdown the mains power to 5V?
You may also want to take a look at ESPEasy as they allow you to change the SSID / MQTT messages etc via a web interface instead of having to compile a different .bin file for each sensor.
I’ve gotten sidetracked with life and haven’t gotten back to it. It’s got a few features you might find useful.
I’m storing some per-device config info in a JSON file in the persistent flash. Really useful for software updates if you bought a few different ESP8266 dev boards that have different pin layouts.
Support for a relay to use as a switch in HA
DHT temperature and humidity sensor
My error handling seemed shaky at the time, but I’ve got 4 of them in my house controlling MiLights through HA pretty well for the past 3 months.
Wow. This is exactly what I was planning to do. I am planning to include a photoresistor coupled with rollerblinds. The aim is to ratio natural light with the light fixture so that it would maintain one preset lux level in the room but allow as much natural light as possible.
Sorry for such a late reply, but I have been very busy with school work. The speaker is a cellphone one that I bought years ago and the only distinguishing marks I can see on them is “CO2717”. I think you can get them on AliExpress, but I would look for other retailers first because I don’t really trust them.