Fix error handling on toggle light

Don't read the result of writeBit. It doesn't return anything sensible.
It'll raise on error anyway.
Allow motion detector and alarm blinking to be configured