ZWaveGate totally rewritten