My daughter has a ‘Sam the sheep’ sleeptrainer. It works great (she stays in her room when the sheep is still asleep), but it isn’t remote controlled and very fragile. It’s both battery and USB powered but because the low build quality it looses power frequently and I’ll have to set it up again.
So I decided to build an HA-ready alternative, but my daughter loves her sheep and I had no inspiration to design some child-friendly sleep trainer. But now my son has as a new fire truck bed! It came with a very fragile, noisy and battery powered flash light. So I decided to use ESPHome to improve his fire truck and build a sleep trainer inside it:
So I’ve ordered some 12V lights, buttons, relais, 12v to 5v converter and a Wemos D1 mini:
I had some spare wood and I painted it in the same red color. The buttons even have lights!
I used KiCad to build an electric schema (not 100% correct, still learning to use the program and I’m not an electrician:
And finally, implemented in Home Assistant:
I’m still waiting for some components (wires, relais) so it’s not up and running yet, you’ll get the idea. Now I’ll write some automations to turn off the buttons. If the buttons are off, it means he has to stay in bed (or at least in his room).
‘Licht’ switches a Zigbee-controlled light in his room. ‘Geluid’ has no function yet.