X10 trick

My X10 setup is rigged to control some lights and that’s about it. The important task my X10 setup has is lighting my lizard’s house. When the sun rises, his lights need to go on and when the sun sets, they need to turn off. I have a Linux box figuring out when sun rise and sun set is and turns the lights on and off accordingly. Many times the sun is up, the lights are not on. And every now and then, I’d go to bed and his lights would still be on. This had been a problem I didn’t know how to work around. I think its an interference problem. My working work around has been this:

issue X10 command

sleep 3

issue X10 command

sleep 3

issue X10 command

If there’s a way to setup for looping in a shell script, this would be ideal, but I didn’t look into it (yet).

By adding sleep, the script takes a nap for 3 seconds before trying the command again. There’s no harm done if the lights get toggled on the first command. But if they don’t, then there’s 2 more chances. So far its been working great!

Leave a Reply