this post was submitted on 29 Nov 2023
1 points (100.0% liked)
Home Automation
79 readers
2 users here now
Home automation is the residential extension of building automation.
It is automation of the home, housework or household activity.
Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security.
Warning: Working with electricity can result in injury, property damage, or even death if it is not done properly. Please keep this in mind while assisting others. If you are not sure about what you are doing, hire a licensed professional.
Rules
- No abusive behaviour. This is a forum for friendly discussion; personal attacks will not be tolerated and you will be banned without warning.
- Referral/affiliate links are NOT ALLOWED!
- NO POLITICS! There are plenty of other communities to discuss them; this is not one.
- When posting project details must be included. Posting a video or image without detail will result in a removed post and may result in a ban.
- Crowdfunding links are not allowed.
- Reposts, low-effort content and karma farming may be removed at the discretion of the mods. Posters may be banned without warning.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Use the GPIO of the RPi to fire a relay for a set duration with a timer.
The relay would be wired NC with your router's plug. Once the timer is done, it releases the relay and power is restored to the router.
Make the duration whatever you need to sufficiently let the router be off before plugging it in again. Usually like 30 seconds.
Control the RPi with whatever you want for an input command to fire the relay, then trigger the output.
If you really wanna make this easy, have an electrician wire a light switch to the outlet and make it a switched outlet. Router on, router off, easy as a lamp.
This is the way to do it. I made a simple relay plus outlet where any 5v signal would turn the outlet off, and used it to control my router.
Eventually I got a better modem that I could reboot with a software command, then later an even better one that would auto sense problems and recover.