Hi everyone, I wanted to share my experiences and solutions to two issues I recently encountered with my smart home setup. Hopefully, this can help others who might be facing similar problems.
Wake-on-LAN (WoL) Issue
I’ve been using Wake-on-LAN to remotely power on my PC, but I noticed that after 10-15 minutes of shutdown, the WoL functionality stopped working. This was puzzling because my router’s WoL button always worked perfectly. After some research and troubleshooting, I discovered that the issue was related to ARP cache timeouts on my Linux server. Here’s what I did to resolve it:
- Static IP Configuration: I set up static IP addresses for both my router and the destination PC.
- NIC and BIOS Settings: I enabled WoL in the network interface card settings and ensured that energy-saving modes were disabled. In the BIOS, I also made sure that WoL was enabled.
- ARP Cache Fix: I added the destination PC’s IP and MAC address to the Linux server’s ARP table using the
arp -scommand. This prevents the ARP cache from clearing after 10-15 minutes, ensuring WoL packets are correctly routed.
Raspberry Pi 5 GPIO Access
Another challenge I faced was accessing the GPIO pins on my newly upgraded Raspberry Pi 5. I found out that the pigpio library doesn’t currently support the RPi5. However, I managed to work around this issue by setting up a Docker container running mqtt-io alongside gpiozero. This setup allows me to control the GPIO pins via MQTT, which integrates seamlessly with my OpenHAB installation.
I’ve shared the corresponding code and setup instructions on GitHub for anyone who might need this workaround. Feel free to check it out and use it if it fits your needs!
Conclusion
These fixes have been a huge relief, and I’m glad I could work through them. If anyone else has encountered similar issues or has additional tips, I’d love to hear about your experiences in the comments below!
Happy tinkering! ![]()