Construct ZWaveAPI inside State.